Add parentheses to avoid compiler warnings.
This commit is contained in:
parent
b958b0d9bc
commit
beaa2c33de
1 changed files with 4 additions and 4 deletions
|
@ -124,16 +124,16 @@ class shape_file : boost::noncopyable
|
|||
{
|
||||
char b[4];
|
||||
file_.read(b, 4);
|
||||
return b[3] & 0xffu | (b[2] & 0xffu) << 8 |
|
||||
(b[1] & 0xffu) << 16 | (b[0] & 0xffu) << 24;
|
||||
return (b[3] & 0xffu) | ((b[2] & 0xffu) << 8) |
|
||||
((b[1] & 0xffu) << 16) | ((b[0] & 0xffu) << 24);
|
||||
}
|
||||
|
||||
inline int read_ndr_integer()
|
||||
{
|
||||
char b[4];
|
||||
file_.read(b,4);
|
||||
return b[0]&0xffu | (b[1]&0xffu) << 8 |
|
||||
(b[2]&0xffu) << 16 | (b[3]&0xffu) << 24;
|
||||
return (b[0]&0xffu) | ((b[1]&0xffu) << 8) |
|
||||
((b[2]&0xffu) << 16) | ((b[3]&0xffu) << 24);
|
||||
}
|
||||
|
||||
inline double read_double()
|
||||
|
|
Loading…
Reference in a new issue