nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Update libs to use correctly ascii and code_point
[nit.git]
/
lib
/
mnit
/
numbers.nit
diff --git
a/lib/mnit/numbers.nit
b/lib/mnit/numbers.nit
index
1b7a017
..
e7462b4
100644
(file)
--- a/
lib/mnit/numbers.nit
+++ b/
lib/mnit/numbers.nit
@@
-41,7
+41,7
@@
redef class Display
do
var str = number.to_s
for c in str.chars do
- var d = c.ascii-'0'.ascii
+ var d = c.code_point-'0'.code_point
assert d >= 0 and d <= 9
var img = imgs.imgs[d]
blit(img, x, y)