Commit 373ccf36 authored by Dominik Charousset's avatar Dominik Charousset

Merge pull request #86 from toffaletti/unstable

fix minor build issues
parents 2e89b4a2 f604ac90
......@@ -37,7 +37,7 @@ if (HAVE_VALGRIND_H)
add_definitions(-DCPPA_ANNOTATE_VALGRIND)
else (HAVE_VALGRIND_H)
set(VALGRIND "no")
endif (AVE_VALGRIND_H)
endif (HAVE_VALGRIND_H)
# check for g++ >= 4.7 or clang++ > = 3.2
try_run(ProgramResult
......
......@@ -93,7 +93,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
ctx::make_fcontext(&storage, fiber_trampoline);
vg_register(vgm,
storage.fc_stack.base,
reinterpret_cast<intptr_t>(storage.fc_stack.base) - stacksize);
reinterpret_cast<void*>(
reinterpret_cast<intptr_t>(storage.fc_stack.base) - stacksize));
}
#else
namespace ctx = boost::context;
......@@ -107,7 +108,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
storage = ctx::make_fcontext(alloc.allocate(mss), mss, fiber_trampoline);
vg_register(vgm,
storage->fc_stack.sp,
reinterpret_cast<intptr_t>(storage->fc_stack.sp) - mss);
reinterpret_cast<void*>(
reinterpret_cast<intptr_t>(storage->fc_stack.sp) - mss));
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment