Fixed suspicious code in lss.c
authoretisserant
Mon, 31 Mar 2008 15:39:44 +0200
changeset 436 77796b3e3428
parent 435 509158e51940
child 437 129bbe0504e4
Fixed suspicious code in lss.c
src/lss.c
--- a/src/lss.c	Mon Mar 31 15:25:43 2008 +0200
+++ b/src/lss.c	Mon Mar 31 15:39:44 2008 +0200
@@ -47,7 +47,8 @@
 //#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]))