From: Ahmed Charles Date: Thu, 6 Mar 2014 06:05:26 +0000 (+0000) Subject: Fix break by qualifying ptrdiff_t with std::. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=acc8fb158ea0894dea4929c8c3a3193587362b79;p=oota-llvm.git 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 --- 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;