Giter Club home page Giter Club logo

zig-capnp's People

Contributors

dpwm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

zig-capnp's Issues

Simple struct unpacking issue

After migrating from std.mem.readIntLittle to std.mem.readInt(..., .little) I was able to compile and run the tests but I'm receiving the following error:

Test [1/14] test.simple struct unpacking... segmentCount = 65280
file Read segment Length = 50
thread 17268 panic: reached unreachable code
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\std\debug.zig:342:14: 0x7ff609311aad in assert (test.exe.obj)
    if (!ok) unreachable; // assertion failure
             ^
C:\Users\giova\repos\other\personal\zig-capnp\src\capnp.zig:609:25: 0x7ff60931138c in fromFile (test.exe.obj)
        std.debug.assert(segmentLengthsBuffer.len == try file.read(segmentLengthsBuffer));
                        ^
C:\Users\giova\repos\other\personal\zig-capnp\src\capnp_tests.zig:60:45: 0x7ff609312406 in test.simple struct unpacking (test.exe.obj)
    var message = try capnp.Message.fromFile(file, std.testing.allocator);
                                            ^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\test_runner.zig:181:28: 0x7ff609329c12 in mainTerminal (test.exe.obj)
        } else test_fn.func();
                           ^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\test_runner.zig:36:28: 0x7ff609319be8 in main (test.exe.obj)
        return mainTerminal();
                           ^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\std\start.zig:350:69: 0x7ff609319963 in WinStartup (test.exe.obj)
    std.os.windows.ntdll.RtlExitUserProcess(initEventLoopAndCallMain());

Seems that in the first bytes it's expecting the number of segments but it's not the case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.