From 1a4e2196bd6c76e89a41ac7f124b28462e695146 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 5 Jun 2020 14:12:30 +0100 Subject: [PATCH] Fix `runtime.bswap_16` --- core/runtime/internal.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {