Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Milhomme Allan
JavaMetaParser
Commits
f99c178c
Commit
f99c178c
authored
Oct 12, 2018
by
Custom2043
Browse files
Update numberChar number parsing
parent
196ca97a
Changes
2
Hide whitespace changes
Inline
Side-by-side
JMP.jar
View file @
f99c178c
No preview for this file type
src/tokens/NumberChar.java
View file @
f99c178c
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment