1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

fix build on i386

This commit is contained in:
Mikolaj Golub 2017-01-20 22:20:40 +00:00
parent 24b365e1be
commit 9581eb465a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432002

View File

@ -0,0 +1,30 @@
--- deps/eleveldb/c_src/leveldb/util/perf_count.cc.orig 2017-01-08 11:38:09.374810000 +0200
+++ deps/eleveldb/c_src/leveldb/util/perf_count.cc 2017-01-21 00:09:02.610066000 +0200
@@ -360,11 +360,11 @@
uint32_t ret_32, * ptr_32;
ptr_32=(uint32_t *)&val_ptr;
- ret_32=inc_and_fetch(ptr_32, 1);
+ ret_32=inc_and_fetch(ptr_32);
if (0==ret_32)
{
++ptr_32;
- inc_and_fetch(ptr_32, 1);
+ inc_and_fetch(ptr_32);
} // if
#endif
ret_val=*val_ptr;
@@ -432,11 +432,11 @@
ptr_32=(uint32_t *)&val_ptr;
old_32=*ptr_32;
- ret_32=add_and_fetch(ptr_32, Amount);
+ ret_32=add_and_fetch(ptr_32, (uint32_t)Amount);
if (ret_32<old_32)
{
++ptr_32;
- add_and_fetch(ptr_32, 1);
+ add_and_fetch(ptr_32, (uint32_t)1);
} // if
ret_val=*val_ptr;