From 80b9fccc77dbfe64da1ff062654fe0f1e0d79d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 4 Nov 2024 22:41:29 -0500 Subject: [PATCH] Add most const decorations. Not sure what macOS is doing, but it looks like something weird is happening in interpolate_width... maybe some unexpected integer promotion? --- src/conio/scale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/scale.c b/src/conio/scale.c index afddfa3a2a..db12e77395 100644 --- a/src/conio/scale.c +++ b/src/conio/scale.c @@ -763,7 +763,7 @@ struct YCoCg_data { }; static inline void -RGB_to_YCoCg(const uint32_t RGB, struct YCoCg_data *YCoCg) +RGB_to_YCoCg(const uint32_t RGB, struct YCoCg_data * const YCoCg) { signed R, G, B, tmp; @@ -778,7 +778,7 @@ RGB_to_YCoCg(const uint32_t RGB, struct YCoCg_data *YCoCg) } static inline uint32_t -YCoCg_to_RGB(struct YCoCg_data *YCoCg) +YCoCg_to_RGB(struct YCoCg_data const * const YCoCg) { signed Ri, Gi, Bi, tmp; unsigned R, G, B; -- GitLab