Fix cast warning in Unicode function
Fixes #339. Fixes a sign conversion warning in a function compiled by -DCXXOPTS_USE_UNICODE_HELP=1.
This commit is contained in:
parent
89a9d334f2
commit
120205ac5a
@ -8,6 +8,7 @@ options. The project adheres to semantic versioning.
|
|||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* Fixed version number in header.
|
* Fixed version number in header.
|
||||||
|
* Fixed cast warning in Unicode function.
|
||||||
|
|
||||||
## 3.1
|
## 3.1
|
||||||
|
|
||||||
|
|||||||
@ -230,10 +230,10 @@ stringAppend(String& s, Iterator begin, Iterator end)
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
std::size_t
|
size_t
|
||||||
stringLength(const String& s)
|
stringLength(const String& s)
|
||||||
{
|
{
|
||||||
return s.length();
|
return static_cast<size_t>(s.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user