Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
f1d85164
Commit
f1d85164
authored
Feb 19, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a warning about empty macro args.
parent
e9b21916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
format.cc
format.cc
+16
-14
No files found.
format.cc
View file @
f1d85164
...
...
@@ -119,22 +119,24 @@ const char fmt::internal::DIGITS[] =
"6061626364656667686970717273747576777879"
"8081828384858687888990919293949596979899"
;
#define FMT_POWERS_OF_10(
prefix
) \
prefix
10, \
prefix
100, \
prefix
1000, \
prefix
10000, \
prefix
100000, \
prefix
1000000, \
prefix
10000000, \
prefix
100000000, \
prefix
1000000000
const
uint32_t
fmt
::
internal
::
POWERS_OF_10_32
[]
=
{
0
,
FMT_POWERS_OF_10
()};
#define FMT_POWERS_OF_10(
factor
) \
factor *
10, \
factor *
100, \
factor *
1000, \
factor *
10000, \
factor *
100000, \
factor *
1000000, \
factor *
10000000, \
factor *
100000000, \
factor *
1000000000
const
uint32_t
fmt
::
internal
::
POWERS_OF_10_32
[]
=
{
0
,
FMT_POWERS_OF_10
(
1
)};
const
uint64_t
fmt
::
internal
::
POWERS_OF_10_64
[]
=
{
0
,
FMT_POWERS_OF_10
(),
FMT_POWERS_OF_10
(
ULongLong
(
1000000000
)
*
),
FMT_POWERS_OF_10
(
1
),
FMT_POWERS_OF_10
(
ULongLong
(
1000000000
)),
// Multiply several constants instead of using a single long long constants
// to avoid warnings about C++98 not supporting long long.
ULongLong
(
1000000000
)
*
ULongLong
(
1000000000
)
*
10
};
...
...
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