diff options
author | Peng Cheng <gm4cheng@gmail.com> | 2013-05-01 14:18:06 +0000 |
---|---|---|
committer | Peng Cheng <gm4cheng@gmail.com> | 2013-05-01 14:18:06 +0000 |
commit | a45391000ebfcf6193a97f2bb558f5beb845ee65 (patch) | |
tree | 5c98188b74f8f351e308a4d6a938d0f5f2e00cd9 /include | |
parent | 711d324d50e5b335e98e576ce6725b056427e3f3 (diff) | |
download | llvm-a45391000ebfcf6193a97f2bb558f5beb845ee65.tar.gz llvm-a45391000ebfcf6193a97f2bb558f5beb845ee65.tar.bz2 llvm-a45391000ebfcf6193a97f2bb558f5beb845ee65.tar.xz |
fix windows warning.
warning C4244: 'argument' : conversion from 'uint64_t' to 'const unsigned int', possible loss of data
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/StringRef.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index 224855e3f8..c00e1a51be 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -390,14 +390,14 @@ namespace llvm { /// Return a StringRef equal to 'this' but with the first \p N elements /// dropped. - StringRef drop_front(unsigned N = 1) const { + StringRef drop_front(size_t N = 1) const { assert(size() >= N && "Dropping more elements than exist"); return substr(N); } /// Return a StringRef equal to 'this' but with the last \p N elements /// dropped. - StringRef drop_back(unsigned N = 1) const { + StringRef drop_back(size_t N = 1) const { assert(size() >= N && "Dropping more elements than exist"); return substr(0, size()-N); } |