mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 13:25:19 +00:00
Fix typo in package utf8; add wchar_t to package c
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user