Clear C4742 warning using MSVC (GH #591)

pull/594/head
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
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ bool EqualityComparisonFilter::HandleMismatchDetected(bool blocking)
m_mismatchDetected = true; m_mismatchDetected = true;
if (m_throwIfNotEqual) if (m_throwIfNotEqual)
throw MismatchDetected(); 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 NAMESPACE_END