Fix some -vet warnings; change import to core:math/bits

This commit is contained in:
Kevin Watters committed 2019-03-25 09:23:46 -04:00
1 parent b978959fae
commit e6f9b4fb11
4 files changed
+5 -7

No files matched your search

+2 -2
View File
@@ -230,8 +230,8 @@ quote :: proc(buf: []byte, s: string) -> string {
write_byte(buf, &i, digits[s[0]>>4]);
write_byte(buf, &i, digits[s[0]&0xf]);
}
s := quote_rune(buf[i:], r);
i += len(s);
s2 := quote_rune(buf[i:], r);
i += len(s2);
}
write_byte(buf, &i, c);
return string(buf[:i]);