Mercurial Hosting > luan
changeset 98:3a0ff21f0c96
fix LuanJavaFunction.ARG_FLOAT
git-svn-id: https://luan-java.googlecode.com/svn/trunk@99 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 22 Mar 2013 15:23:29 +0000 |
parents | 7b15f56660fa |
children | b19988270d74 |
files | src/luan/LuanJavaFunction.java |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/LuanJavaFunction.java Sat Mar 09 07:47:18 2013 +0000 +++ b/src/luan/LuanJavaFunction.java Fri Mar 22 15:23:29 2013 +0000 @@ -264,9 +264,7 @@ return obj; if( obj instanceof Number ) { Number n = (Number)obj; - float r = n.floatValue(); - if( r==n.doubleValue() ) - return r; + return n.floatValue(); } if( obj instanceof String ) { String s = (String)obj;