-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sys_stat size integer overflow #1157
base: master
Are you sure you want to change the base?
Fix sys_stat size integer overflow #1157
Conversation
CI failure is related:
|
I think Apple is a bit more strict with the type casting, the compile problem was solved. https://github.com/barisyild/hxcpp/actions/runs/11325731311 |
Note that |
Can't we just always use the |
Probably a bug, because the same code works fine in my ci. https://github.com/barisyild/hxcpp/actions/runs/11331298885 |
Doesn't this require a change on the haxe side to work properly? Since the Changes like this should also probably be guarded with a |
Even if there is no api change on the Haxe side, it looks fine, because haxe int actually works with float double-precision. |
I tried and you are right, I think it needs a haxe api change. |
I just tried it and it doesn't work. FileStat.size just returns 0. |
This pull request fixes the file size integer overflow issue for sys_stat.