X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altoslib%2FAltosPyro.java;h=33d7486ce628cbf83d8f81a7d36b1f6b53a58ac0;hp=a1a903fde45d73452561172460d32f0266b9516b;hb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;hpb=97adfff4cfb67c17a96f3ff46606b4e439422b01 diff --git a/altoslib/AltosPyro.java b/altoslib/AltosPyro.java index a1a903fd..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 @@ -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);