aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/image/general.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/general.odin b/core/image/general.odin
index 1662cf14e..779f5d0b1 100644
--- a/core/image/general.odin
+++ b/core/image/general.odin
@@ -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
}