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
Where the unexpected (int) cast means we lose the top 32 bits. This is because cpp.Int64 can auto-cast to Int and the haxe.Int64 abstract has auto-cast from Int but not Int64. A fix is to add an auto-cast from cpp.Int64
PR + regression test on the way
The text was updated successfully, but these errors were encountered:
* [cpp] support cpp.Int64 -> haxe.Int64 round-trip. Closes#10100
* [test] add regression test for Int64 roundtrip #10100
* try not using @:structAccess and cast instead
* Guard with #if cpp || cppia
* remove #if cppia
* Disable test on cppia
Ran into this while trying to use
haxe.Int64
to get the low and high bits of acpp.Int64
:The following
Generates
cpp::Int64Struct hx64 = ( ::cpp::Int64Struct(( (int)(cpp64) )))
Where the unexpected
(int)
cast means we lose the top 32 bits. This is becausecpp.Int64
can auto-cast toInt
and thehaxe.Int64
abstract has auto-cast fromInt
but notInt64
. A fix is to add an auto-cast fromcpp.Int64
PR + regression test on the way
The text was updated successfully, but these errors were encountered: