Skip to content

Commit

Permalink
should close #6095
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Smirnov authored and acozzette committed May 3, 2019
1 parent fbe4ccc commit 3ee24bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/parse_context.h
Expand Up @@ -125,7 +125,7 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
// If return value is negative it's an error
PROTOBUF_MUST_USE_RESULT int PushLimit(const char* ptr, int limit) {
GOOGLE_DCHECK(limit >= 0);
limit += ptr - buffer_end_;
limit += static_cast<int>(ptr - buffer_end_);
limit_end_ = buffer_end_ + (std::min)(0, limit);
auto old_limit = limit_;
limit_ = limit;
Expand Down

0 comments on commit 3ee24bc

Please sign in to comment.