From df37450f91aa793423be9a3d59a8bfc50ea5aee2 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 19 Jul 2021 16:02:02 -0400 Subject: talk: Explicitly cast -1 as unsigned before a left shift. The code is explcitly relying on twos complement numerical represntation so this just shuts up the compiler and static analysis warnings. Change-Id: If11cd0a3a4127e8a872a752119d347ac6e09424c --- apps/talk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/talk.h b/apps/talk.h index b4aa344916..d5f3bb2996 100644 --- a/apps/talk.h +++ b/apps/talk.h @@ -70,13 +70,13 @@ enum talk_status { /* make a "talkable" ID from number + unit unit is upper 4 bits, number the remaining (in regular 2's complement) */ -#define TALK_ID(n,u) (((long)(u))<