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:
Jarryd Beck 2023-03-15 07:09:09 +11:00
parent 89a9d334f2
commit 120205ac5a
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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