From 53732ab0bbc723a7e5504e42b0857076e24409c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 14 Aug 2021 11:26:43 +0200 Subject: Resolve -Wimplicit-int-conversion warnings Panel.c:414:49: error: implicit conversion loses integer precision: 'int' to 'short' [-Werror,-Wimplicit-int-conversion] this->scrollH = MAXIMUM(this->selectedLen - this->w, 0); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~ ./Macros.h:11:54: note: expanded from macro 'MAXIMUM' #define MAXIMUM(a, b) ((a) > (b) ? (a) : (b)) ^ IncSet.c:159:38: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] mode->buffer[mode->index] = ch; ~ ^~ Panel.c:456:24: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] buffer[len] = ch; ~ ^~ Panel.c:473:22: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] buffer[0] = ch; ~ ^~ --- Panel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Panel.h') diff --git a/Panel.h b/Panel.h index cf110c90..9bb4c77e 100644 --- a/Panel.h +++ b/Panel.h @@ -67,7 +67,7 @@ struct Panel_ { int selectedLen; void* eventHandlerState; int scrollV; - short scrollH; + int scrollH; bool needsRedraw; bool wasFocus; FunctionBar* currentBar; -- cgit v1.2.3