Merge pull request #6114 from dayllenger/master

Fix TGA header detection
This commit is contained in:
gingerBill
2026-01-09 11:58:00 +00:00
committed by GitHub

View File

@@ -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
}