contrib/oot: script to update and check oot projects
[nit.git] / contrib / pep8analysis / src / model / operands.nit
index 592e1af..8723a4a 100644 (file)
@@ -24,17 +24,16 @@ redef class ANumberValue
 end
 
 redef class ACharValue
-       redef fun to_i do return n_char.content.first.ascii
+       redef fun to_i do return n_char.content.first.code_point
 end
 
 redef class AStringValue
        # legal but no not recommended
-       redef fun to_i do return n_string.content.first.ascii
+       redef fun to_i do return n_string.content.first.code_point
 end
 
 redef class AHexValue
-       #TODO
-       redef fun to_i do return n_hex.text.to_hex
+       redef fun to_i do return n_hex.text.trim.to_hex(2)
 end
 
 redef class TString # TkBlock