Browse Source

fixed : use null to check end of string.

Nicolas Cannasse 19 years ago
parent
commit
31311c7836
1 changed files with 0 additions and 5 deletions
  1. 0 5
      std/haxe/Unserializer.hx

+ 0 - 5
std/haxe/Unserializer.hx

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