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
0d1582df
Commit
0d1582df
authored
Oct 12, 2018
by
Custom2043
Browse files
Fix number reading
parent
fb2c7335
Changes
2
Show whitespace changes
Inline
Side-by-side
JMP.jar
View file @
0d1582df
No preview for this file type
src/tokens/NumberChar.java
View file @
0d1582df
...
...
@@ -39,11 +39,11 @@ public class NumberChar extends Token
public
char
toChar
()
{
if
(
this
.
base
.
index
==
5
)
if
(
this
.
base
.
index
==
4
)
return
(
char
)
Integer
.
parseInt
(
this
.
total
.
substring
(
2
),
2
);
else
if
(
this
.
base
.
index
==
7
)
else
if
(
this
.
base
.
index
==
6
)
return
(
char
)
Integer
.
parseInt
(
this
.
total
.
substring
(
2
),
16
);
else
if
(
this
.
base
.
index
==
9
)
else
if
(
this
.
base
.
index
==
8
)
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