Skip to content

Commit

Permalink
fix minor build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
toffaletti committed Dec 21, 2012
1 parent 2e89b4a commit f604ac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/fiber.cpp
Expand Up @@ -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;
Expand All @@ -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

Expand Down

0 comments on commit f604ac9

Please sign in to comment.