1. Andrew Godwin
  2. protobuf

Commits

ken...@google.com@630680e5-0e50-0410-840e-4b1c322b438d  committed 1e1502f

Fix missing header issue -- INT_MAX is defined in limits.h. I chose to use a different constant rather than add the #include.

  • Participants
  • Parent commits f2ac7cd
  • Branches default

Comments (0)

Files changed (1)

File src/google/protobuf/io/coded_stream.h

View file
     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),