Fix nan-related error in constant folding logic that was failing on some JVMs
This commit is contained in:
@@ -861,7 +861,7 @@ public class FuncState extends LuaC {
|
||||
r = null;
|
||||
break;
|
||||
}
|
||||
if (Double.NaN == r.todouble())
|
||||
if ( Double.isNaN(r.todouble()) )
|
||||
return false; /* do not attempt to produce NaN */
|
||||
e1.u.setNval( r );
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user