Commit 8b4e762e by Alan Mishchenko

Minor bug fix.

parent bbd170e8
...@@ -764,7 +764,7 @@ static inline int Vec_StrGetI_ne( Vec_Str_t * vOut, int * pPos ) ...@@ -764,7 +764,7 @@ static inline int Vec_StrGetI_ne( Vec_Str_t * vOut, int * pPos )
int i; int i;
int Val = 0; int Val = 0;
for ( i = 0; i < 4; i++ ) for ( i = 0; i < 4; i++ )
Val |= (int)(unsigned char)Vec_StrEntry(vOut, (*pPos)++) << (8*i); Val |= ((int)(unsigned char)Vec_StrEntry(vOut, (*pPos)++) << (8*i));
return Val; return Val;
} }
...@@ -779,7 +779,7 @@ static inline int Vec_StrGetI( Vec_Str_t * vOut, int * pPos ) ...@@ -779,7 +779,7 @@ static inline int Vec_StrGetI( Vec_Str_t * vOut, int * pPos )
unsigned char ch; unsigned char ch;
int i = 0, Val = 0; int i = 0, Val = 0;
while ( (ch = Vec_StrEntry(vOut, (*pPos)++)) & 0x80 ) while ( (ch = Vec_StrEntry(vOut, (*pPos)++)) & 0x80 )
Val |= (ch & 0x7f) << (7 * i++); Val |= ((ch & 0x7f) << (7 * i++));
return Val | (ch << (7 * i)); return Val | (ch << (7 * i));
} }
...@@ -794,7 +794,7 @@ static inline word Vec_StrGetW( Vec_Str_t * vOut, int * pPos ) ...@@ -794,7 +794,7 @@ static inline word Vec_StrGetW( Vec_Str_t * vOut, int * pPos )
int i; int i;
word Val = 0; word Val = 0;
for ( i = 0; i < 8; i++ ) for ( i = 0; i < 8; i++ )
Val |= (word)(unsigned char)Vec_StrEntry(vOut, (*pPos)++) << (8*i); Val |= ((word)(unsigned char)Vec_StrEntry(vOut, (*pPos)++) << (8*i));
return Val; return Val;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment