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
I was able to work around it pretty easily in my use-case by dropping A values. I'm using a very out-of-date version of flixel right now (4.8.1), but for instance FlxColor.fromString("0xff112233").toHexString() evaluates to 0x7FFFFFFF in the cpp build. It doesn't seem the function has changed much since then.
The text was updated successfully, but these errors were encountered:
I'll see if I can reproduce this on my mac, if not I have a windows pc I can try. there may be a workaround flixel can use but I wonder if haxe std should have a parseUInt or something
The issue you link seems different, though. 1. it compares android and linux, 2. it works fine on hex strings, just not on decimal.
Edit: I can't reproduce this issue on Mac with haxe 4.3.3. I'll report back after more testing
this seems related: HaxeFoundation/hxcpp#1053
are you using hxcpp v 4.3.2? I believe this may be fixed in the next version. I don't see this on mac with haxe 4.3.4 and hxcpp 4.3.2, but other people are seeing it on windows
(warning: somewhat low-quality bug report - I figure it's better to point it out than to not say anything at all)
I'm on windows with haxe 4.3.4
flixel/flixel/util/FlxColor.hx
Line 195 in fd3eff9
0xff112233 has the value 4279312947, but evaluating
trace(Std.parseInt("0xff112233"));
we get I think the error code
2147483647
(0x7FFFFFFF
)(in a html5 build it works for me and gives
4279312947
)cf HaxeFoundation/haxe#6759
I was able to work around it pretty easily in my use-case by dropping A values. I'm using a very out-of-date version of flixel right now (4.8.1), but for instance
FlxColor.fromString("0xff112233").toHexString()
evaluates to0x7FFFFFFF
in the cpp build. It doesn't seem the function has changed much since then.The text was updated successfully, but these errors were encountered: