mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Make core and vendor adhere to -vet, -strict-style, and -disallow-do
This commit is contained in:
@@ -88,7 +88,9 @@ _open_file_dialog :: proc(title: string, dir: string,
|
||||
|
||||
// Filters need to be passed as a pair of strings (title, filter)
|
||||
filter_len := u32(len(filters))
|
||||
if filter_len % 2 != 0 do return "", false
|
||||
if filter_len % 2 != 0 {
|
||||
return "", false
|
||||
}
|
||||
|
||||
filter: string
|
||||
filter = strings.join(filters, "\u0000", context.temp_allocator)
|
||||
|
||||
@@ -837,7 +837,9 @@ wstring_to_utf8 :: proc(s: Wstring, N: int, allocator := context.temp_allocator)
|
||||
}
|
||||
|
||||
utf16_to_utf8 :: proc(s: []u16, allocator := context.temp_allocator) -> string {
|
||||
if len(s) == 0 do return ""
|
||||
if len(s) == 0 {
|
||||
return ""
|
||||
}
|
||||
return wstring_to_utf8(cast(Wstring)&s[0], len(s), allocator)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user