mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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;
|
ptrdiff_t :: b.int;
|
||||||
uintptr_t :: b.uintptr;
|
uintptr_t :: b.uintptr;
|
||||||
intptr_t :: b.int;
|
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;
|
i := 0;
|
||||||
for c in s {
|
for r in s {
|
||||||
if i == pos {
|
if i == pos {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user