nim-lang / c2nim

c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand before and after the translation process.
MIT License
509 stars 63 forks source link

Compiler needs to be synced with nim compiler #177

Closed foldl closed 3 years ago

foldl commented 5 years ago

I have encounter with an issue in the converting of hex value in C.

After digging into the code, it is caused by let y = x and ((1 shl (size*8)) - 1) in renderer.nim, when compiled against 32-bit platform.

In the newest nim compiler, this line has been deleted. So, I think c2nim needs an update and get in sync with current nim compiler.

Araq commented 3 years ago

Hex values are now kept as they are anyway.