X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosPyro.java;h=33d7486ce628cbf83d8f81a7d36b1f6b53a58ac0;hb=c296acd643698d0128e2f58f91a9cfeea63f580a;hp=3afd03e00c59bd2b4df03fb416c7f60f0d5350c8;hpb=60f4d69592c440ab7bb67a04f4c07fc7279d2c20;p=fw%2Faltos diff --git a/altoslib/AltosPyro.java b/altoslib/AltosPyro.java index 3afd03e0..33d7486c 100644 --- a/altoslib/AltosPyro.java +++ b/altoslib/AltosPyro.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -15,7 +16,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.text.*; @@ -277,7 +278,7 @@ public class AltosPyro { int value = 0; ++i; try { - value = AltosLib.fromdec(tokens[i]); + value = (int) AltosLib.fromdec(tokens[i]); } catch (NumberFormatException n) { throw new ParseException(String.format("Invalid pyro value \"%s\"", tokens[i]), i);