Fix break by qualifying ptrdiff_t with std::.

llvm-svn: 203084
This commit is contained in:
Ahmed Charles 2014-03-06 06:05:26 +00:00
parent 56440fd820
commit 0a685a9a52
1 changed files with 2 additions and 2 deletions

View File

@ -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<ptrdiff_t>(address) < LastChar - FirstChar;
return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar;
}
bool objectEnd(uint64_t address) const {
return static_cast<ptrdiff_t>(address) == LastChar - FirstChar;
return static_cast<std::ptrdiff_t>(address) == LastChar - FirstChar;
}
RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;