|
@@ -43,8 +43,13 @@ class Unserializer {
|
|
var s = false;
|
|
var s = false;
|
|
while( true ) {
|
|
while( true ) {
|
|
var c = buf.charCodeAt(pos);
|
|
var c = buf.charCodeAt(pos);
|
|
- if( c == null )
|
|
|
|
|
|
+ #if neko
|
|
|
|
+ if( c == null )
|
|
|
|
+ break;
|
|
|
|
+ #else true
|
|
|
|
+ if( Std.isNaN(c) )
|
|
break;
|
|
break;
|
|
|
|
+ #end
|
|
if( c == 45 ) { // negative sign
|
|
if( c == 45 ) { // negative sign
|
|
s = true;
|
|
s = true;
|
|
pos++;
|
|
pos++;
|
|
@@ -204,7 +209,7 @@ class Unserializer {
|
|
else
|
|
else
|
|
args.unshift(tag);
|
|
args.unshift(tag);
|
|
untyped args.__enum__ = e;
|
|
untyped args.__enum__ = e;
|
|
- return args;
|
|
|
|
|
|
+ return args;
|
|
#end
|
|
#end
|
|
default:
|
|
default:
|
|
}
|
|
}
|