Browse Source

fixed php unpack()

Nicolas Cannasse 10 years ago
parent
commit
2aebec0618
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/io/FPHelper.hx

+ 1 - 1
std/haxe/io/FPHelper.hx

@@ -247,7 +247,7 @@ class FPHelper {
 			}
 			}
 			return i64;
 			return i64;
 		#elseif php	
 		#elseif php	
-			var a = untyped __call__('unpack',isLittleEndian ? 'VV' : 'NN',__call__('pack', 'd', v));
+			var a = untyped __call__('unpack',isLittleEndian ? 'V2' : 'N2',__call__('pack', 'd', v));
 			var i64 = i64tmp;
 			var i64 = i64tmp;
 			@:privateAccess {
 			@:privateAccess {
 				i64.low = a[isLittleEndian ? 1 : 2];
 				i64.low = a[isLittleEndian ? 1 : 2];