diff options
author | ZyX <kp-pav@yandex.ru> | 2015-08-13 21:50:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:00:40 +0300 |
commit | 597da1977708bcdf8c9dc0c374896fa0e3e7cb39 (patch) | |
tree | 78155b735b1c7b2840a46dcdaf989471dd9347cc /src | |
parent | 563f5c26507c8de4db1f4ccac4828b2db37017dc (diff) | |
download | rneovim-597da1977708bcdf8c9dc0c374896fa0e3e7cb39.tar.gz rneovim-597da1977708bcdf8c9dc0c374896fa0e3e7cb39.tar.bz2 rneovim-597da1977708bcdf8c9dc0c374896fa0e3e7cb39.zip |
shada: Fix incompatible pointer types error in non-glibc builds
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/shada.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index aa409c937c..86714a5eb7 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -3186,7 +3186,7 @@ static inline uint64_t be64toh(uint64_t big_endian_64_bits) #ifdef SHADA_BIG_ENDIAN return big_endian_64_bits; #else - uint8_t *buf = &big_endian_64_bits; + uint8_t *buf = (uint8_t *) &big_endian_64_bits; uint64_t ret = 0; for (size_t i = 8; i; i--) { ret |= ((uint64_t) buf[i - 1]) << ((8 - i) * 8); |