aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/util
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-05-26 16:56:33 +0000
committerHolger Zickner <[email protected]>2005-05-26 16:56:33 +0000
commitc96baeae8717b80e23afabd4abdfb5aff0e8cbcc (patch)
tree5d0849dc34b79ed36c1f59353ac6ea5ae5361071 /src/jake2/util
parent152b65e3999ba7a618cdf934c830351f2f76cff2 (diff)
merge last changes from 0.9.4 branch
Diffstat (limited to 'src/jake2/util')
-rw-r--r--src/jake2/util/Lib.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/util/Lib.java b/src/jake2/util/Lib.java
index 4f709d4..51829c1 100644
--- a/src/jake2/util/Lib.java
+++ b/src/jake2/util/Lib.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 09.12.2003 by RST.
-// $Id: Lib.java,v 1.12 2005-01-09 23:41:53 cawe Exp $
+// $Id: Lib.java,v 1.13 2005-05-26 16:56:31 hzi Exp $
package jake2.util;
@@ -89,7 +89,11 @@ public class Lib {
return Integer.parseInt(in);
}
catch (Exception e) {
- return 0;
+ try {
+ return (int)Double.parseDouble(in);
+ } catch (Exception e1) {
+ return 0;
+ }
}
}
public static float[] atov(String v) {