diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-11 20:00:22 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-11 20:00:22 +0200 |
commit | ce216e062c95dafe87df1edc638f45b61ebe3a03 (patch) | |
tree | 10d75b88347f04781d5a31f30c3242e33b13e638 /src/libmdsserver/mds-message.c | |
parent | whitespace (diff) | |
download | mds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.gz mds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.bz2 mds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.xz |
Use *_MAX instead of __WORDSIZE
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libmdsserver/mds-message.c')
-rw-r--r-- | src/libmdsserver/mds-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c index e610bc0..5f2c536 100644 --- a/src/libmdsserver/mds-message.c +++ b/src/libmdsserver/mds-message.c @@ -516,7 +516,7 @@ int mds_message_unmarshal(mds_message_t* restrict this, char* restrict data) this->buffer_size |= this->buffer_size >> 4; this->buffer_size |= this->buffer_size >> 8; this->buffer_size |= this->buffer_size >> 16; -#if __WORDSIZE == 64 +#if SIZE_MAX == UINT64_MAX this->buffer_size |= this->buffer_size >> 32; #endif this->buffer_size += 1; |