Fix do on for loops

This commit is contained in:
Ginger Bill
2017-07-01 11:53:01 +01:00
parent ed089b44b9
commit d782b3d21d
4 changed files with 24 additions and 30 deletions
+1 -5
View File
@@ -29,11 +29,7 @@ encode_surrogate_pair :: proc(r: rune) -> (r1, r2: rune) {
encode :: proc(d: []u16, s: []rune) {
n := len(s);
for r in s {
if r >= _surr_self {
n++;
}
}
for r in s do if r >= _surr_self do n++;
max_n := min(len(d), n);
n = 0;