[igt-dev] [PATCH i-g-t] lib: fix typo in clamp16()

Swati Sharma swati2.sharma at intel.com
Mon Jun 5 15:47:10 UTC 2023


Fix typo in return type of clamp16().

Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 lib/igt_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 11a5d6c0..9be312a2 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -3069,7 +3069,7 @@ static uint8_t clamp8(float val)
 	return clamp((int)(val + 0.5f), 0, 255);
 }
 
-static uint8_t clamp16(float val)
+static uint16_t clamp16(float val)
 {
 	return clamp((int)(val + 0.5f), 0, 65535);
 }
-- 
2.25.1



More information about the igt-dev mailing list