mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-25 13:27:52 +00:00
fix windows warning.
warning C4244: 'argument' : conversion from 'uint64_t' to 'const unsigned int', possible loss of data llvm-svn: 180847
This commit is contained in:
parent
b880965b90
commit
569be5d6d2
@ -390,14 +390,14 @@ namespace llvm {
|
|||||||
|
|
||||||
/// Return a StringRef equal to 'this' but with the first \p N elements
|
/// Return a StringRef equal to 'this' but with the first \p N elements
|
||||||
/// dropped.
|
/// dropped.
|
||||||
StringRef drop_front(unsigned N = 1) const {
|
StringRef drop_front(size_t N = 1) const {
|
||||||
assert(size() >= N && "Dropping more elements than exist");
|
assert(size() >= N && "Dropping more elements than exist");
|
||||||
return substr(N);
|
return substr(N);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a StringRef equal to 'this' but with the last \p N elements
|
/// Return a StringRef equal to 'this' but with the last \p N elements
|
||||||
/// dropped.
|
/// dropped.
|
||||||
StringRef drop_back(unsigned N = 1) const {
|
StringRef drop_back(size_t N = 1) const {
|
||||||
assert(size() >= N && "Dropping more elements than exist");
|
assert(size() >= N && "Dropping more elements than exist");
|
||||||
return substr(0, size()-N);
|
return substr(0, size()-N);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user