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

This commit is contained in:
Kevin Watters
2019-03-25 09:23:46 -04:00
parent b978959fae
commit e6f9b4fb11
4 changed files with 5 additions and 7 deletions
+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]);