Skip to content

Commit

Permalink
Fix -Wsign-compare warning
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547529709
  • Loading branch information
rjogrady committed Jul 12, 2023
1 parent c9f9edf commit 27f34a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ std::pair<const uint8_t*, ptrdiff_t> DecompressBranchless(
DeferMemCopy(&deferred_src, &deferred_length, from, len);
}
} while (ip < ip_limit_min_slop &&
(op + deferred_length) < op_limit_min_slop);
static_cast<ptrdiff_t>(op + deferred_length) < op_limit_min_slop);
exit:
ip--;
assert(ip <= ip_limit);
Expand Down

2 comments on commit 27f34a5

@jingjingxyk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@avsej
Copy link

@avsej avsej commented on 27f34a5 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pwnall How about new release with this fix?

Please sign in to comment.