forked from OSchip/llvm-project
Fix break by qualifying ptrdiff_t with std::.
llvm-svn: 203084
This commit is contained in:
parent
56440fd820
commit
0a685a9a52
|
@ -48,10 +48,10 @@ private:
|
||||||
// These are implemented as inline functions here to avoid multiple virtual
|
// These are implemented as inline functions here to avoid multiple virtual
|
||||||
// calls per public function
|
// calls per public function
|
||||||
bool validAddress(uint64_t address) const {
|
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 {
|
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;
|
RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
|
||||||
|
|
Loading…
Reference in New Issue