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
45da432d
Commit
45da432d
authored
Sep 03, 2020
by
Jan Schwers
Committed by
Victor Zverovich
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compiler warnings in public header files
parent
d55e61f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/fmt/format.h
include/fmt/format.h
+2
-2
No files found.
include/fmt/format.h
View file @
45da432d
...
@@ -1611,7 +1611,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
...
@@ -1611,7 +1611,7 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
char
digits
[
40
];
char
digits
[
40
];
format_decimal
(
digits
,
abs_value
,
num_digits
);
format_decimal
(
digits
,
abs_value
,
num_digits
);
basic_memory_buffer
<
Char
>
buffer
;
basic_memory_buffer
<
Char
>
buffer
;
size
+=
prefix_size
;
size
+=
static_cast
<
int
>
(
prefix_size
)
;
const
auto
usize
=
to_unsigned
(
size
);
const
auto
usize
=
to_unsigned
(
size
);
buffer
.
resize
(
usize
);
buffer
.
resize
(
usize
);
basic_string_view
<
Char
>
s
(
&
sep
,
sep_size
);
basic_string_view
<
Char
>
s
(
&
sep
,
sep_size
);
...
@@ -3495,7 +3495,7 @@ inline std::string to_string(T value) {
...
@@ -3495,7 +3495,7 @@ inline std::string to_string(T value) {
// The buffer should be large enough to store the number including the sign or
// The buffer should be large enough to store the number including the sign or
// "false" for bool.
// "false" for bool.
constexpr
int
max_size
=
detail
::
digits10
<
T
>
()
+
2
;
constexpr
int
max_size
=
detail
::
digits10
<
T
>
()
+
2
;
char
buffer
[
max_size
>
5
?
max_size
:
5
];
char
buffer
[
max_size
>
5
?
static_cast
<
unsigned
>
(
max_size
)
:
5
];
char
*
begin
=
buffer
;
char
*
begin
=
buffer
;
return
std
::
string
(
begin
,
detail
::
write
<
char
>
(
begin
,
value
));
return
std
::
string
(
begin
,
detail
::
write
<
char
>
(
begin
,
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