Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please sonar.
[simgrid.git] / src / kernel / context / ContextSwapped.cpp
index 7b25012..5a54a95 100644 (file)
@@ -170,7 +170,11 @@ SwappedContext::~SwappedContext()
 unsigned char* SwappedContext::get_stack_bottom() const
 {
   // Depending on the stack direction, its bottom (that make_fcontext needs) may be the lower or higher end
-  return PTH_STACKGROWTH == -1 ? stack_ + get_actor()->get_stacksize() : stack_;
+#if PTH_STACKGROWTH == 1
+  return stack_;
+#else
+  return stack_ + get_actor()->get_stacksize();
+#endif
 }
 
 void SwappedContext::stop()