From 48efc90dd9be7c365d57946a1b23369b3b73fb61 Mon Sep 17 00:00:00 2001 From: etisserant Date: Mon, 31 Mar 2008 13:39:44 +0000 Subject: [PATCH] Fixed suspicious code in lss.c --- src/lss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lss.c b/src/lss.c index 643b8ce..b47daeb 100644 --- a/src/lss.c +++ b/src/lss.c @@ -47,7 +47,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //#define LSS_FS_TIMEOUT_MS (TIMEVAL)100 /* ms */ /* Returns the LSS ident field from a Message struct */ -#define getLSSIdent(msg) ((msg->data[4] << 24) | (msg->data[3] << 16) | (msg->data[2] << 8) | (msg->data[1])) +#define getLSSIdent(msg) (((UNS32)msg->data[4] << 24) | ((UNS32)msg->data[3] << 16) | (msg->data[2] << 8) | (msg->data[1])) + /* Returns the LSS switch delay field from a Message struct */ #define getLSSDelay(msg) ((msg->data[2] << 8) | (msg->data[1])) -- 2.39.2