Fix runtime.bswap_16

This commit is contained in:
gingerBill
2020-06-05 14:12:30 +01:00
parent d8f9daac95
commit 1a4e2196bd

View File

@@ -3,7 +3,7 @@ package runtime
import "core:os"
bswap_16 :: proc "none" (x: u16) -> u16 {
return x>>8 | x<<16;
return x>>8 | x<<8;
}
bswap_32 :: proc "none" (x: u32) -> u32 {