From acc8fb158ea0894dea4929c8c3a3193587362b79 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Thu, 6 Mar 2014 06:05:26 +0000 Subject: [PATCH] Fix break by qualifying ptrdiff_t with std::. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203084 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/StreamableMemoryObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/StreamableMemoryObject.cpp b/lib/Support/StreamableMemoryObject.cpp index 2cc87fc1abe..df7620ae6b2 100644 --- a/lib/Support/StreamableMemoryObject.cpp +++ b/lib/Support/StreamableMemoryObject.cpp @@ -48,10 +48,10 @@ private: // These are implemented as inline functions here to avoid multiple virtual // calls per public function bool validAddress(uint64_t address) const { - return static_cast(address) < LastChar - FirstChar; + return static_cast(address) < LastChar - FirstChar; } bool objectEnd(uint64_t address) const { - return static_cast(address) == LastChar - FirstChar; + return static_cast(address) == LastChar - FirstChar; } RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;