Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
44edefae
Commit
44edefae
authored
8 years ago
by
Adam Cozzette
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2382 from zhsyourai/master
Add LL to large constant
parents
99564c33
14c147ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
constants.h
src/google/protobuf/util/internal/constants.h
+4
-4
No files found.
src/google/protobuf/util/internal/constants.h
View file @
44edefae
...
...
@@ -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
=
-
62135596800
LL
;
// Maximum seconds allowed in a google.protobuf.Timestamp value.
const
int64
kTimestampMaxSeconds
=
253402300799
;
const
int64
kTimestampMaxSeconds
=
253402300799
LL
;
// Minimum seconds allowed in a google.protobuf.Duration value.
const
int64
kDurationMinSeconds
=
-
315576000000
;
const
int64
kDurationMinSeconds
=
-
315576000000
LL
;
// Maximum seconds allowed in a google.protobuf.Duration value.
const
int64
kDurationMaxSeconds
=
315576000000
;
const
int64
kDurationMaxSeconds
=
315576000000
LL
;
// Nano seconds in a second.
const
int32
kNanosPerSecond
=
1000000000
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment