Commit f99c178c authored by Custom2043's avatar Custom2043
Browse files

Update numberChar number parsing

parent 196ca97a
No preview for this file type
......@@ -39,11 +39,11 @@ public class NumberChar extends Token
public char toChar()
{
if (this.base.index == 7)
if (this.base.index == 5)
return (char)Integer.parseInt(this.total.substring(2), 2);
else if (this.base.index == 11)
else if (this.base.index == 7)
return (char)Integer.parseInt(this.total.substring(2), 16);
else if (this.base.index == 12)
else if (this.base.index == 9)
return (char)Integer.parseInt(this.total.substring(2), 8);
return (char)(int)Integer.valueOf(this.total);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment