diff options
| author | gingerBill <bill@gingerbill.org> | 2020-06-05 14:12:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-06-05 14:12:30 +0100 |
| commit | 1a4e2196bd6c76e89a41ac7f124b28462e695146 (patch) | |
| tree | 09103d858f398a95b22762728c8e433da3afc7e4 /core/runtime | |
| parent | d8f9daac9583be2e03292ae241b997053fe6e941 (diff) | |
Fix `runtime.bswap_16`
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/internal.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/internal.odin b/core/runtime/internal.odin index 75727814a..bc4b8e7de 100644 --- a/core/runtime/internal.odin +++ b/core/runtime/internal.odin @@ -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 { |