assertion failure on darwin_x86_64, have to investigage

PiperOrigin-RevId: 303428229
This commit is contained in:
Snappy Team
2020-03-27 23:17:50 +00:00
committed by Victor Costan
parent e19178748f
commit 4dfcad9f4e
3 changed files with 68 additions and 21 deletions

View File

@@ -957,8 +957,9 @@ TEST(Snappy, ZeroOffsetCopyValidation) {
namespace {
int TestFindMatchLength(const char* s1, const char *s2, unsigned length) {
uint64 data;
std::pair<size_t, bool> p =
snappy::internal::FindMatchLength(s1, s2, s2 + length);
snappy::internal::FindMatchLength(s1, s2, s2 + length, &data);
CHECK_EQ(p.first < 8, p.second);
return p.first;
}