diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-02-09 02:09:08 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-02-09 02:09:08 +0000 |
commit | 769ab6ff0350bb8b314220ccdbb9867d3ddc382c (patch) | |
tree | a45ee53910f188b9122f3462fe3a793d47ce42ba /src | |
parent | c65c04195de5d861f3802ac380547244a16220d2 (diff) | |
download | protobuf-769ab6ff0350bb8b314220ccdbb9867d3ddc382c.tar.gz protobuf-769ab6ff0350bb8b314220ccdbb9867d3ddc382c.tar.bz2 protobuf-769ab6ff0350bb8b314220ccdbb9867d3ddc382c.zip |
Fix missing header issue -- INT_MAX is defined in limits.h. I chose to use a different constant rather than add the #include.
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
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), |