mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-23 16:48:05 +02:00
Fix #296: Explicitly cast size_t results to unsigned when needed
This is rebased from #297, where AppVeyor had been failing, and which was not properly based on the master branch.
This commit is contained in:

committed by
Christopher Dunn

parent
81cb7e5c5b
commit
702a539762
@@ -125,7 +125,7 @@ inline static void decodePrefixedString(
|
||||
unsigned* length, char const** value)
|
||||
{
|
||||
if (!isPrefixed) {
|
||||
*length = strlen(prefixed);
|
||||
*length = static_cast<unsigned>(strlen(prefixed));
|
||||
*value = prefixed;
|
||||
} else {
|
||||
*length = *reinterpret_cast<unsigned const*>(prefixed);
|
||||
|
Reference in New Issue
Block a user