Fix nan-related error in constant folding logic that was failing on some JVMs
This commit is contained in:
@@ -704,6 +704,10 @@ and LuaForge:
|
||||
<tr valign="top"><td> <b>2.0</b></td><td><ul>
|
||||
<li>Initial release of 2.0 version
|
||||
</ul></td></tr>
|
||||
<tr valign="top"><td> <b>2.0.1</b></td><td><ul>
|
||||
<li>Improve correctness of singleton construction related to static initialization
|
||||
<li>Fix nan-related error in constant folding logic that was failing on some JVMs
|
||||
</ul></td></tr>
|
||||
</table>
|
||||
|
||||
<h2>Known Issues</h2>
|
||||
|
||||
@@ -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