diff options
author | Adam Cozzette <acozzette@gmail.com> | 2016-11-17 16:23:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 16:23:56 -0800 |
commit | 44edefaef6e70a34cccc2959271fe7bc0ac5642c (patch) | |
tree | f0c16c8b6c613ccca1a2a02b403033d2815b3dc5 | |
parent | 99564c3347223b92e49bd40f37b8c0d6fc6a3971 (diff) | |
parent | 14c147ea799df197f24ff609575e964a07d63c99 (diff) | |
download | protobuf-44edefaef6e70a34cccc2959271fe7bc0ac5642c.tar.gz protobuf-44edefaef6e70a34cccc2959271fe7bc0ac5642c.tar.bz2 protobuf-44edefaef6e70a34cccc2959271fe7bc0ac5642c.zip |
Merge pull request #2382 from zhsyourai/master
Add LL to large constant
-rw-r--r-- | src/google/protobuf/util/internal/constants.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/google/protobuf/util/internal/constants.h b/src/google/protobuf/util/internal/constants.h index e556888c..a018a09e 100644 --- a/src/google/protobuf/util/internal/constants.h +++ b/src/google/protobuf/util/internal/constants.h @@ -50,16 +50,16 @@ const char kRfc3339TimeFormat[] = "%E4Y-%m-%dT%H:%M:%S"; const char kRfc3339TimeFormatNoPadding[] = "%Y-%m-%dT%H:%M:%S"; // Minimun seconds allowed in a google.protobuf.Timestamp value. -const int64 kTimestampMinSeconds = -62135596800; +const int64 kTimestampMinSeconds = -62135596800LL; // Maximum seconds allowed in a google.protobuf.Timestamp value. -const int64 kTimestampMaxSeconds = 253402300799; +const int64 kTimestampMaxSeconds = 253402300799LL; // Minimum seconds allowed in a google.protobuf.Duration value. -const int64 kDurationMinSeconds = -315576000000; +const int64 kDurationMinSeconds = -315576000000LL; // Maximum seconds allowed in a google.protobuf.Duration value. -const int64 kDurationMaxSeconds = 315576000000; +const int64 kDurationMaxSeconds = 315576000000LL; // Nano seconds in a second. const int32 kNanosPerSecond = 1000000000; |