Fix typo in package utf8; add wchar_t to package c

This commit is contained in:
gingerBill
2019-10-27 08:34:20 +00:00
parent 2db16d6a32
commit 0977ac111a
2 changed files with 3 additions and 1 deletions

View File

@@ -31,3 +31,5 @@ ssize_t :: b.int;
ptrdiff_t :: b.int;
uintptr_t :: b.uintptr;
intptr_t :: b.int;
wchar_t :: (ODIN_OS == "windows") ? b.u16 : b.u32;

View File

@@ -167,7 +167,7 @@ rune_at_pos :: proc(s: string, pos: int) -> rune {
}
i := 0;
for c in s {
for r in s {
if i == pos {
return r;
}