nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parallelization_phase: use `ANode::validate` after AST shenanigans.
[nit.git]
/
lib
/
crypto.nit
diff --git
a/lib/crypto.nit
b/lib/crypto.nit
index
310f725
..
011347d
100644
(file)
--- a/
lib/crypto.nit
+++ b/
lib/crypto.nit
@@
-30,7
+30,7
@@
redef class Char
x = x % 26
if x < 0 then x += 26
var up = false
- var val = ascii
+ var val = code_point
if is_upper then
up = true
val += 32
@@
-38,7
+38,7
@@
redef class Char
val += x
if val > 122 then val -= 26
if up then val -= 32
- return val.ascii
+ return val.code_point
end
end