From 17ad1fbbd184f01bc327ac504a7c65fdaa3f43f2 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 12 Feb 2022 19:07:19 -0600 Subject: [PATCH] inline --- src/pixie/fileformats/bmp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/fileformats/bmp.nim b/src/pixie/fileformats/bmp.nim index 1a75845..f80a49c 100644 --- a/src/pixie/fileformats/bmp.nim +++ b/src/pixie/fileformats/bmp.nim @@ -8,7 +8,7 @@ const bmpSignature* = "BM" template failInvalid() = raise newException(PixieError, "Invalid BMP buffer, unable to load") -proc colorMaskShift(color: uint32, mask: uint32): uint8 = +proc colorMaskShift(color, mask: uint32): uint8 {.inline.} = ((color and mask) shr (mask.firstSetBit() - 1)).uint8 proc decodeBmp*(data: string): Image {.raises: [PixieError].} =