diff options
author | Bdale Garbee <bdale@gag.com> | 2016-06-17 10:02:00 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2016-06-17 10:02:00 -0600 |
commit | 085336c45ce0577031a7af5de117a8b856160708 (patch) | |
tree | 13a145eab69e38f2658359fa8395e7257b3c3fb9 /altoslib/AltosPyro.java | |
parent | 50c9a54ac6b04458970eedfa6d3e0e25f41c765f (diff) | |
parent | 639e461ded29a48c155afea12171cbfc191ccfd7 (diff) |
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'altoslib/AltosPyro.java')
-rw-r--r-- | altoslib/AltosPyro.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altoslib/AltosPyro.java b/altoslib/AltosPyro.java index 28e65bc2..c948ce21 100644 --- a/altoslib/AltosPyro.java +++ b/altoslib/AltosPyro.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.text.*; @@ -138,7 +138,7 @@ public class AltosPyro { units = pyro_to_units.get(flag); if (units == null) return name; - return String.format ("%s (%s)", name, units.show_units()); + return String.format ("%s (%s)", name, units.parse_units()); } public static AltosUnits pyro_to_units(int flag) { @@ -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); |