mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
size_t, not unsigned here to silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0b0562a35
commit
abc5ac7289
@ -49,7 +49,7 @@ namespace llvm {
|
|||||||
: Data(Str) { if (Str) Length = ::strlen(Str); else Length = 0; }
|
: Data(Str) { if (Str) Length = ::strlen(Str); else Length = 0; }
|
||||||
|
|
||||||
/// Construct a string ref from a pointer and length.
|
/// Construct a string ref from a pointer and length.
|
||||||
/*implicit*/ StringRef(const char *data, unsigned length)
|
/*implicit*/ StringRef(const char *data, size_t length)
|
||||||
: Data(data), Length(length) {}
|
: Data(data), Length(length) {}
|
||||||
|
|
||||||
/// Construct a string ref from an std::string.
|
/// Construct a string ref from an std::string.
|
||||||
|
Loading…
Reference in New Issue
Block a user