]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
Fixed suspicious code in lss.c
authoretisserant <etisserant>
Mon, 31 Mar 2008 13:39:44 +0000 (13:39 +0000)
committeretisserant <etisserant>
Mon, 31 Mar 2008 13:39:44 +0000 (13:39 +0000)
src/lss.c

index 643b8ce2d605501c6469b0306a451f190a620a4f..b47daeb6f7eee64af9412f3f85f87eb2c7cfb881 100644 (file)
--- 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]))