Explorar o código

minor hl fixes

Nicolas Cannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
f4de00878a
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      hxd/fmt/fbx/Data.hx
  2. 1 1
      hxd/fmt/fbx/Parser.hx

+ 2 - 1
hxd/fmt/fbx/Data.hx

@@ -91,7 +91,8 @@ class FbxTools {
 	}
 	}
 
 
 	static inline function idToInt( f : Float ) {
 	static inline function idToInt( f : Float ) {
-		#if neko
+		#if (neko || hl)
+		// ids are unsigned
 		f %= 4294967296.;
 		f %= 4294967296.;
 		if( f >= 2147483648. )
 		if( f >= 2147483648. )
 			f -= 4294967296.;
 			f -= 4294967296.;

+ 1 - 1
hxd/fmt/fbx/Parser.hx

@@ -72,7 +72,7 @@ class Parser {
 			case TLength(v):
 			case TLength(v):
 				except(TBraceOpen);
 				except(TBraceOpen);
 				except(TNode("a"));
 				except(TNode("a"));
-				var ints = [];
+				var ints : Array<Int> = [];
 				var floats : Array<Float> = null;
 				var floats : Array<Float> = null;
 				var i = 0;
 				var i = 0;
 				while( i < v ) {
 				while( i < v ) {