Selaa lähdekoodia

[cpp] Do not use .value notation in Int64 implementation

Hugh 10 vuotta sitten
vanhempi
commit
bcacd3f41a
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      std/cpp/_std/haxe/Int64.hx

+ 3 - 3
std/cpp/_std/haxe/Int64.hx

@@ -29,7 +29,7 @@ extern class Int64Struct { }
 abstract Int64( Int64Struct )
 {
    public function toString() : String {
-      return untyped this.value;
+		return untyped __cpp__("String( (cpp::Int64)({0}) )", this);
   }
 
 	public static inline function make( high : Int, low : Int ) : Int64 {
@@ -60,7 +60,7 @@ abstract Int64( Int64Struct )
 	}
 
 	public static function getHigh( x : Int64 ) : Int {
-		return  untyped __cpp__("(({0}).value)>>32",x);
+		return  untyped __cpp__("((cpp::Int64)({0}))>>32",x);
 	}
 
 	public static inline function add( a : Int64, b : Int64 ) : Int64 {
@@ -132,7 +132,7 @@ abstract Int64( Int64Struct )
 	}
 
 	public static function toStr( a : Int64 ) : String {
-		return untyped new String(a.value);
+		return untyped __cpp__("String( (cpp::Int64)({0}) )", a);
 	}
 
 }