2
0
Эх сурвалжийг харах

fixed setFloat64 on IE8/9

Nicolas Cannnasse 7 жил өмнө
parent
commit
339652cd9d

+ 2 - 2
std/js/html/compat/DataView.hx

@@ -139,10 +139,10 @@ class DataView {
 		var i64 = haxe.io.FPHelper.doubleToI64(value);
 		if( littleEndian ) {
 			setUint32(byteOffset, i64.low);
-			setUint32(byteOffset, i64.high);
+			setUint32(byteOffset + 4, i64.high);
 		} else {
 			setUint32(byteOffset, i64.high);
-			setUint32(byteOffset, i64.low);
+			setUint32(byteOffset + 4, i64.low);
 		}
 	}