From 769ab6ff0350bb8b314220ccdbb9867d3ddc382c Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Tue, 9 Feb 2010 02:09:08 +0000 Subject: Fix missing header issue -- INT_MAX is defined in limits.h. I chose to use a different constant rather than add the #include. --- src/google/protobuf/io/coded_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/io/coded_stream.h') diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 360fcf1b..7b2e7cbb 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -1044,7 +1044,7 @@ inline CodedInputStream::CodedInputStream(ZeroCopyInputStream* input) last_tag_(0), legitimate_message_end_(false), aliasing_enabled_(false), - current_limit_(INT_MAX), + current_limit_(kint32max), buffer_size_after_limit_(0), total_bytes_limit_(kDefaultTotalBytesLimit), total_bytes_warning_threshold_(kDefaultTotalBytesWarningThreshold), -- cgit v1.2.3