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