This commit is contained in:
Dante
2026-05-21 23:40:20 -07:00
parent 3e2915dff7
commit 877a69d844
5737 changed files with 29796 additions and 1589684 deletions

View File

@ -22,7 +22,21 @@
package cpp;
@:coreType @:notNull @:runtimeValue abstract Int64 from Int to Int {
@:coreType @:notNull @:runtimeValue abstract Int64 from Int {
/**
Destructively cast to Int
**/
public inline function toInt():Int {
return cast this;
}
@:to
@:deprecated("Implicit cast from Int64 to Int (32 bits) is deprecated. Use .toInt() or explicitly cast instead.")
inline function implicitToInt(): Int {
return toInt();
}
@:to
#if !cppia inline #end function toInt64():haxe.Int64 {
return cast this;