diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-04 12:05:57 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-04 12:05:57 -0700 |
commit | 8b4e762e5aee0a8b073049b45dbbddb591559e8b (patch) | |
tree | 9666033d4c10dfd1dd77b38710146b8730ea6510 /src | |
parent | bbd170e8a3ab5cedd947ef2549487b74a65403da (diff) | |
download | abc-8b4e762e5aee0a8b073049b45dbbddb591559e8b.tar.gz abc-8b4e762e5aee0a8b073049b45dbbddb591559e8b.tar.bz2 abc-8b4e762e5aee0a8b073049b45dbbddb591559e8b.zip |
Minor bug fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/vec/vecStr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h index 238fe451..952dfdb7 100644 --- a/src/misc/vec/vecStr.h +++ b/src/misc/vec/vecStr.h @@ -764,7 +764,7 @@ static inline int Vec_StrGetI_ne( Vec_Str_t * vOut, int * pPos ) int i; int Val = 0; 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; } @@ -779,7 +779,7 @@ static inline int Vec_StrGetI( Vec_Str_t * vOut, int * pPos ) unsigned char ch; int i = 0, Val = 0; while ( (ch = Vec_StrEntry(vOut, (*pPos)++)) & 0x80 ) - Val |= (ch & 0x7f) << (7 * i++); + Val |= ((ch & 0x7f) << (7 * i++)); return Val | (ch << (7 * i)); } @@ -794,7 +794,7 @@ static inline word Vec_StrGetW( Vec_Str_t * vOut, int * pPos ) int i; word Val = 0; 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; } |