mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 06:18:39 +00:00
Merge pull request #6114 from dayllenger/master
Fix TGA header detection
This commit is contained in:
@@ -86,7 +86,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type {
|
||||
return v
|
||||
}
|
||||
get16le :: #force_inline proc(s: ^string) -> u16 {
|
||||
v := u16(s[0]) | u16(s[1])<<16
|
||||
v := u16(s[0]) | u16(s[1])<<8
|
||||
s^ = s[2:]
|
||||
return v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user