diff --git a/src/stream_base.cc b/src/stream_base.cc index adb839c3e5d633..670b3cbd5091d1 100644 --- a/src/stream_base.cc +++ b/src/stream_base.cc @@ -292,7 +292,7 @@ void StreamBase::CallJSOnreadMethod(ssize_t nread, #ifdef DEBUG CHECK_EQ(static_cast(nread), nread); - CHECK_EQ(static_cast(offset), offset); + CHECK_LE(offset, INT32_MAX); if (ab.IsEmpty()) { CHECK_EQ(offset, 0);