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:
Stuart Eichert
2015-07-01 14:18:15 -07:00
committed by Christopher Dunn
parent bb5d0249ed
commit cb8259f545
2 changed files with 3 additions and 3 deletions

View File

@@ -126,7 +126,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);