Browse Source

fixed : use null to check end of string.

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
31311c7836
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      std/haxe/Unserializer.hx

+ 0 - 5
std/haxe/Unserializer.hx

@@ -43,13 +43,8 @@ class Unserializer {
  		var s = false;
  		while( true ) {
  			var c = buf.charCodeAt(pos);
- 			#if neko
  			if( c == null )
  				break;
- 			#else true
-			if( Math.isNaN(c) )
-				break;
-			#end
  			if( c == 45 ) { // negative sign
  				s = true;
  				pos++;