nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
text: use UInt32 to manipulate chars
[nit.git]
/
lib
/
core
/
text
/
flat.nit
diff --git
a/lib/core/text/flat.nit
b/lib/core/text/flat.nit
index
a28a264
..
de69148
100644
(file)
--- a/
lib/core/text/flat.nit
+++ b/
lib/core/text/flat.nit
@@
-1359,7
+1359,7
@@
redef class CString
while rem > 0 do
while rem >= 4 do
var i = fetch_4_chars(pos)
- if i & 0x80808080 != 0 then break
+ if i & 0x80808080u32 != 0u32 then break
pos += 4
chr_ln += 4
rem -= 4