Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
452ba765
Commit
452ba765
authored
Jan 08, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed conversion warnings
parent
2ac42c0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/spdlog/details/fmt_helper.h
include/spdlog/details/fmt_helper.h
+1
-1
include/spdlog/details/pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+2
-2
No files found.
include/spdlog/details/fmt_helper.h
View file @
452ba765
...
...
@@ -47,7 +47,7 @@ template<typename T>
inline
unsigned
count_digits
(
T
n
)
{
using
count_type
=
typename
std
::
conditional
<
(
sizeof
(
T
)
>
sizeof
(
uint32_t
)),
uint64_t
,
uint32_t
>::
type
;
return
fmt
::
internal
::
count_digits
(
static_cast
<
count_type
>
(
n
));
return
static_cast
<
unsigned
>
(
fmt
::
internal
::
count_digits
(
static_cast
<
count_type
>
(
n
)
));
}
template
<
size_t
Buffer_Size
>
...
...
include/spdlog/details/pattern_formatter.h
View file @
452ba765
...
...
@@ -712,7 +712,7 @@ public:
const
auto
pid
=
static_cast
<
uint32_t
>
(
details
::
os
::
pid
());
if
(
padinfo_
.
enabled
())
{
const
size_t
field_size
=
fmt
::
internal
::
count_digits
(
pid
);
auto
field_size
=
fmt_helper
::
count_digits
(
pid
);
scoped_pad
p
(
field_size
,
padinfo_
,
dest
);
fmt_helper
::
append_int
(
pid
,
dest
);
}
...
...
@@ -885,7 +885,7 @@ public:
}
if
(
padinfo_
.
enabled
())
{
const
size_t
field_size
=
fmt
::
internal
::
count_digits
(
msg
.
source
.
line
);
auto
field_size
=
fmt_helper
::
count_digits
(
msg
.
source
.
line
);
scoped_pad
p
(
field_size
,
padinfo_
,
dest
);
fmt_helper
::
append_int
(
msg
.
source
.
line
,
dest
);
}
...
...
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