Skip to content

Commit 02f6fa8

Browse files
authored
Merge pull request #55 from cdyk/32bit-offset
Only compare lower 32 bits of offset since expected offset is a 32 bi…
2 parents 901f0d6 + 6178db3 commit 02f6fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParserRVM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ namespace {
9999
bool verifyOffset(Context* ctx, const char* chunk_type, const char* base_ptr, const char* curr_ptr, uint32_t expected_next_chunk_offset)
100100
{
101101
size_t current_offset = curr_ptr - base_ptr;
102-
if (current_offset == expected_next_chunk_offset) {
102+
if (static_cast<uint32_t>(current_offset) == expected_next_chunk_offset) {
103103
return true;
104104
}
105105
else {

0 commit comments

Comments
 (0)