summarylogtreecommitdiffstats
path: root/fiber.patch
blob: a61ce42919561b6ed64254c98854aa05a1bd0eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -uNr folly-2016.07.26/folly/fibers/Fiber.h folly/folly/fibers/Fiber.h
--- folly-2016.07.26/folly/fibers/Fiber.h	2016-07-26 08:38:39.000000000 -0700
+++ folly/folly/fibers/Fiber.h	2016-08-12 08:18:54.319430367 -0700
@@ -15,6 +15,7 @@
  */
 #pragma once
 
+#include <cstdlib>
 #include <functional>
 #include <thread>
 #include <typeinfo>
@@ -64,7 +65,7 @@
   std::pair<void*, size_t> getStack() const {
     void* const stack =
         std::min<void*>(fcontext_.stackLimit(), fcontext_.stackBase());
-    const size_t size = std::abs<intptr_t>(
+    const size_t size = std::abs(
         reinterpret_cast<intptr_t>(fcontext_.stackBase()) -
         reinterpret_cast<intptr_t>(fcontext_.stackLimit()));
     return {stack, size};