X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=altoslib%2FAltosLib.java;h=044caf8de1ca2d144de41bb20e44544b8d0e1e84;hb=2a4d741872449b5332f28e018fa3acc53ed7d891;hp=a73a7759b6a26422d9877e8c865e4d506998908d;hpb=21d176f161b90f18f236ef887cef9676d712eee3;p=fw%2Faltos diff --git a/altoslib/AltosLib.java b/altoslib/AltosLib.java index a73a7759..044caf8d 100644 --- a/altoslib/AltosLib.java +++ b/altoslib/AltosLib.java @@ -15,7 +15,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altoslib_10; +package org.altusmetrum.altoslib_11; import java.util.*; import java.io.*; @@ -493,9 +493,10 @@ public class AltosLib { return r; } - public static int fromdec(String s) throws NumberFormatException { - int c, v = 0; - int sign = 1; + public static long fromdec(String s) throws NumberFormatException { + int c; + long v = 0; + long sign = 1; for (int i = 0; i < s.length(); i++) { c = s.charAt(i); if (i == 0 && c == '-') {