Occam's razor. toString()ing an int in hex format is built-in to flash.

Didn't touch other stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5085 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-05-12 23:33:16 +00:00
parent fd49818c3c
commit 714ab29a88
+1 -7
View File
@@ -470,13 +470,7 @@ public class StringUtil
*/
public static function toHex (n :uint, width :uint) :String
{
var result :String = "";
while (width > 0) {
result = HEX[n & 0x0f] + result;
n >>>= 4;
width --;
}
return result;
return prepad(n.toString(16), width, "0");
}
/**