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
9cbf4b08
Commit
9cbf4b08
authored
Nov 27, 2019
by
Florin Iucha
Committed by
Victor Zverovich
Nov 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -Wconversion warnings
parent
1200a34e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/fmt/core.h
include/fmt/core.h
+1
-1
include/fmt/format.h
include/fmt/format.h
+1
-1
No files found.
include/fmt/core.h
View file @
9cbf4b08
...
@@ -1242,7 +1242,7 @@ template <typename Context> class basic_format_args {
...
@@ -1242,7 +1242,7 @@ template <typename Context> class basic_format_args {
internal
::
type
type
(
int
index
)
const
{
internal
::
type
type
(
int
index
)
const
{
int
shift
=
index
*
internal
::
packed_arg_bits
;
int
shift
=
index
*
internal
::
packed_arg_bits
;
int
mask
=
(
1
<<
internal
::
packed_arg_bits
)
-
1
;
unsigned
int
mask
=
(
1
<<
internal
::
packed_arg_bits
)
-
1
;
return
static_cast
<
internal
::
type
>
((
types_
>>
shift
)
&
mask
);
return
static_cast
<
internal
::
type
>
((
types_
>>
shift
)
&
mask
);
}
}
...
...
include/fmt/format.h
View file @
9cbf4b08
...
@@ -1572,7 +1572,7 @@ template <typename Range> class basic_writer {
...
@@ -1572,7 +1572,7 @@ template <typename Range> class basic_writer {
basic_string_view
<
char_type
>
s
(
&
sep
,
sep_size
);
basic_string_view
<
char_type
>
s
(
&
sep
,
sep_size
);
// Index of a decimal digit with the least significant digit having
// Index of a decimal digit with the least significant digit having
// index 0.
// index 0.
unsigned
digit_index
=
0
;
int
digit_index
=
0
;
std
::
string
::
const_iterator
group
=
groups
.
cbegin
();
std
::
string
::
const_iterator
group
=
groups
.
cbegin
();
it
=
format_decimal
<
char_type
>
(
it
=
format_decimal
<
char_type
>
(
it
,
abs_value
,
size
,
it
,
abs_value
,
size
,
...
...
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