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
613b3b45
Commit
613b3b45
authored
Jun 23, 2020
by
Greg Sjaardema
Committed by
Victor Zverovich
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes
parent
978521bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/fmt/format-inl.h
include/fmt/format-inl.h
+2
-2
No files found.
include/fmt/format-inl.h
View file @
613b3b45
...
@@ -1136,7 +1136,7 @@ int snprintf_float(T value, int precision, float_specs specs,
...
@@ -1136,7 +1136,7 @@ int snprintf_float(T value, int precision, float_specs specs,
precision
=
(
precision
>=
0
?
precision
:
6
)
-
1
;
precision
=
(
precision
>=
0
?
precision
:
6
)
-
1
;
// Build the format string.
// Build the format string.
enum
{
max_format_size
=
7
};
// Th
s
longest format is "%#.*Le".
enum
{
max_format_size
=
7
};
// Th
e
longest format is "%#.*Le".
char
format
[
max_format_size
];
char
format
[
max_format_size
];
char
*
format_ptr
=
format
;
char
*
format_ptr
=
format
;
*
format_ptr
++
=
'%'
;
*
format_ptr
++
=
'%'
;
...
@@ -1162,7 +1162,7 @@ int snprintf_float(T value, int precision, float_specs specs,
...
@@ -1162,7 +1162,7 @@ int snprintf_float(T value, int precision, float_specs specs,
"fuzz mode - avoid large allocation inside snprintf"
);
"fuzz mode - avoid large allocation inside snprintf"
);
#endif
#endif
// Suppress the warning about a nonliteral format string.
// Suppress the warning about a nonliteral format string.
// Cannot use auto becase of a bug in MinGW (#1532).
// Cannot use auto beca
u
se of a bug in MinGW (#1532).
int
(
*
snprintf_ptr
)(
char
*
,
size_t
,
const
char
*
,
...)
=
FMT_SNPRINTF
;
int
(
*
snprintf_ptr
)(
char
*
,
size_t
,
const
char
*
,
...)
=
FMT_SNPRINTF
;
int
result
=
precision
>=
0
int
result
=
precision
>=
0
?
snprintf_ptr
(
begin
,
capacity
,
format
,
precision
,
value
)
?
snprintf_ptr
(
begin
,
capacity
,
format
,
precision
,
value
)
...
...
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