# HG changeset patch # User etisserant # Date 1206970784 -7200 # Node ID 77796b3e342820a019dab00d73040cc793af14e4 # Parent 509158e519405d82f595edbbbb1248cec427e9b7 Fixed suspicious code in lss.c diff -r 509158e51940 -r 77796b3e3428 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]))