> The inexorable conclusion Does your code really only works when uint is used? Because most of us try to avoid using uint, so uint is not that much tested.
Have you tried without optimization or different C compiler backend? Have you tried compiling to C++ instead of C? (nim cpp test.nim)? I think you know C very well, so maybe you can inspect the intermediate C code in nimcache directory for bugs?
