From 42cd3696a4aae657ec2ae420ed912abd3c274be6 Mon Sep 17 00:00:00 2001 From: Igor Sugak Date: Mon, 1 Aug 2016 18:06:41 -0700 Subject: [PATCH] folly: remove template argument to std::abs to fix build with libc++ Summary: libc++ doesn't implement `std::abs` as template. ```lang=bash ./../folly/fibers/Fiber.h:68:34: error: unexpected type name 'intptr_t': expected expression const size_t size = std::abs( ^ ``` Reviewed By: markisaa Differential Revision: D3645584 fbshipit-source-id: a2d672137f110b975412a94ae4c6d00da0bd0d43 --- folly/fibers/Fiber.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/fibers/Fiber.h b/folly/fibers/Fiber.h index 29269b28..13f435de 100644 --- a/folly/fibers/Fiber.h +++ b/folly/fibers/Fiber.h @@ -64,7 +64,7 @@ class Fiber { std::pair getStack() const { void* const stack = std::min(fcontext_.stackLimit(), fcontext_.stackBase()); - const size_t size = std::abs( + const size_t size = std::abs( reinterpret_cast(fcontext_.stackBase()) - reinterpret_cast(fcontext_.stackLimit())); return {stack, size}; -- 2.34.1