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
a581e9e5
Unverified
Commit
a581e9e5
authored
Oct 02, 2020
by
Kazantcev Andrey
Committed by
GitHub
Oct 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning C4018: '<=': signed/unsigned mismatch (#1908)
parent
05a28312
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/fmt/format-inl.h
include/fmt/format-inl.h
+1
-1
No files found.
include/fmt/format-inl.h
View file @
a581e9e5
...
@@ -1791,7 +1791,7 @@ template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
...
@@ -1791,7 +1791,7 @@ template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
static
constexpr
struct
{
static
constexpr
struct
{
uint32_t
magic_number
;
uint32_t
magic_number
;
int
shift_amount
;
int
shift_amount
;
in
t
divisor_times_10
;
uint32_
t
divisor_times_10
;
}
infos
[]
=
{{
0xcccd
,
19
,
100
},
{
0xa3d8
,
22
,
1000
}};
}
infos
[]
=
{{
0xcccd
,
19
,
100
},
{
0xa3d8
,
22
,
1000
}};
constexpr
auto
info
=
infos
[
N
-
1
];
constexpr
auto
info
=
infos
[
N
-
1
];
FMT_ASSERT
(
n
<=
info
.
divisor_times_10
,
"n is too large"
);
FMT_ASSERT
(
n
<=
info
.
divisor_times_10
,
"n is too large"
);
...
...
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