Clear C4742 warning using MSVC (GH #591)

This commit is contained in:
Jeffrey Walton 2018-02-24 17:00:40 -05:00
parent 2f1c984264
commit 53ccd310b8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -166,7 +166,8 @@ bool EqualityComparisonFilter::HandleMismatchDetected(bool blocking)
m_mismatchDetected = true;
if (m_throwIfNotEqual)
throw MismatchDetected();
return Output(1, (const byte *)"\0", 1, 0, blocking) != 0;
const byte b[1] = {0};
return Output(1, b, 1, 0, blocking) != 0;
}
NAMESPACE_END