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
e7e2ab10
Commit
e7e2ab10
authored
Dec 01, 2018
by
Daniela Engert
Committed by
Victor Zverovich
Dec 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make return type of basic_format_args::max_size() consistent.
This squashes nasty narrowing conversion warnings.
parent
29352af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/fmt/core.h
include/fmt/core.h
+3
-2
No files found.
include/fmt/core.h
View file @
e7e2ab10
...
...
@@ -1279,9 +1279,10 @@ class basic_format_args {
return
arg
;
}
unsigned
max_size
()
const
{
size_type
max_size
()
const
{
unsigned
long
long
max_packed
=
internal
::
max_packed_args
;
return
is_packed
()
?
max_packed
:
types_
&
~
internal
::
is_unpacked_bit
;
return
static_cast
<
size_type
>
(
is_packed
()
?
max_packed
:
types_
&
~
internal
::
is_unpacked_bit
);
}
};
...
...
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