From a2bea1224b6e1899bb5e99bb7aef7b4cb653a19b Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Tue, 26 Nov 2024 17:37:06 +0100 Subject: [PATCH] color_picker.c: Add a const. --- src/common/color_picker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/color_picker.c b/src/common/color_picker.c index 511487c29c8a..b5131877eb24 100644 --- a/src/common/color_picker.c +++ b/src/common/color_picker.c @@ -277,7 +277,7 @@ void dt_color_picker_backtransform_box(dt_develop_t *dev, const float wdp = MAX(1, dev->preview_pipe->processed_width); const float htp = MAX(1, dev->preview_pipe->processed_height); - int out_num = num == 2 ? 4 : 1; + const int out_num = num == 2 ? 4 : 1; for(int i = 0; i < out_num; i++) {