From 785259a4a840335d5c7ca509ec60d62b3f36606e Mon Sep 17 00:00:00 2001 From: Ted V Date: Tue, 15 Feb 2005 21:44:35 +0000 Subject: [PATCH] Quite obviously the parsing should check for integers, not bytes. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3353 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/image/ColorPository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/image/ColorPository.java b/src/java/com/threerings/media/image/ColorPository.java index f61adb349..050787bef 100644 --- a/src/java/com/threerings/media/image/ColorPository.java +++ b/src/java/com/threerings/media/image/ColorPository.java @@ -102,7 +102,7 @@ public class ColorPository implements Serializable { // Check if the string is itself a number try { - byte id = Byte.parseByte(name); + int id = Integer.parseInt(name); if (colors.containsKey(id)) { return id; }