You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[hlc] Using unsigned shift right operator on Int64 results in code that does not compile on MSVC without manually including a particular header.
#11718
Closed
RandomityGuy opened this issue
Jul 12, 2024
· 0 comments
· Fixed by #11721
OS: Windows 10
Haxe Version: 4.3.4
Using MSVC to compile.
Bug Description
Encountered this bug while trying to compile my game through HL/C, narrowed down the cause to be a missing header.
Basically if you perform the unsigned shift right operation on an Int64, it generates casts to uint64_t whose definition is in a header which is not automatically included during code generation. The resulting code does compile on Mac/Linux though so this is specifically a Windows MSVC problem.
I guess I could just fork HL and add the necessary include/definition to hl.h, but still it would be better for it to just work without having to mess with the sources.
The text was updated successfully, but these errors were encountered:
Platform Description
OS: Windows 10
Haxe Version: 4.3.4
Using MSVC to compile.
Bug Description
Encountered this bug while trying to compile my game through HL/C, narrowed down the cause to be a missing header.
Basically if you perform the unsigned shift right operation on an Int64, it generates casts to uint64_t whose definition is in a header which is not automatically included during code generation. The resulting code does compile on Mac/Linux though so this is specifically a Windows MSVC problem.
Reproducible Example
Generated Code
Conclusion
I guess I could just fork HL and add the necessary include/definition to hl.h, but still it would be better for it to just work without having to mess with the sources.
The text was updated successfully, but these errors were encountered: