Skip to content

Commit 6372913

Browse files
committed
fix malloc?
1 parent 99537c9 commit 6372913

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cpp/src/plasma/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ add_library(plasma_lib STATIC
7878
target_link_libraries(plasma_lib ${FLATBUFFERS_STATIC_LIB} -lpthread)
7979
add_dependencies(plasma_lib gen_plasma_fbs)
8080

81+
set_source_files_properties(malloc.cc PROPERTIES COMPILE_FLAGS "-Wno-error=conversion")
82+
8183
add_executable(plasma_store
8284
plasma_store.cc
8385
thirdparty/ae/ae.c

cpp/src/plasma/malloc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extern "C" {
1414
void *fake_mmap(size_t);
15-
int fake_munmap(void *, size_t);
15+
int fake_munmap(void *, int64_t);
1616

1717
#define MMAP(s) fake_mmap(s)
1818
#define MUNMAP(a, s) fake_munmap(a, s)
@@ -126,7 +126,7 @@ void *fake_mmap(size_t size) {
126126
return pointer;
127127
}
128128

129-
int fake_munmap(void *addr, size_t size) {
129+
int fake_munmap(void *addr, int64_t size) {
130130
ARROW_LOG(DEBUG) << "fake_munmap(" << addr << ", " << size << ")";
131131
addr = pointer_retreat(addr, sizeof(size_t));
132132
size += sizeof(size_t);

0 commit comments

Comments
 (0)