From 268e653b05e01161837c786a00a9a476086ef8c8 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Wed, 25 May 2022 18:22:49 -0500 Subject: [PATCH] no cost --- src/pixie/fileformats/jpeg.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/fileformats/jpeg.nim b/src/pixie/fileformats/jpeg.nim index 811ad06..e2c1990 100644 --- a/src/pixie/fileformats/jpeg.nim +++ b/src/pixie/fileformats/jpeg.nim @@ -93,7 +93,7 @@ template failInvalid(reason = "unable to load") = ## Throw exception with a reason. raise newException(PixieError, "Invalid JPEG, " & reason) -template clampByte(x: int32): uint8 = +proc clampByte(x: int32): uint8 {.inline.} = ## Clamp integer into byte range. # clamp(x, 0, 0xFF).uint8 let