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
bf5b2467
Commit
bf5b2467
authored
Jul 29, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt_isinf -> isinfinity
parent
138c3dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
format.cc
format.cc
+3
-3
No files found.
format.cc
View file @
bf5b2467
...
...
@@ -70,7 +70,7 @@ namespace {
#endif
// Portable version of isinf.
inline
int
fmt_isinf
(
double
x
)
{
inline
int
isinfinity
(
double
x
)
{
#ifdef isinf
return
isinf
(
x
);
#else
...
...
@@ -91,7 +91,7 @@ inline int signbit(double value) {
return
sign
;
}
inline
int
fmt_isinf
(
double
x
)
{
return
!
_finite
(
x
);
}
inline
int
isinfinity
(
double
x
)
{
return
!
_finite
(
x
);
}
inline
int
safe_printf
(
char
*
buffer
,
size_t
size
,
const
char
*
format
,
...)
{
va_list
args
;
...
...
@@ -551,7 +551,7 @@ void fmt::BasicWriter<Char>::write_double(T value, const FormatSpec &spec) {
return
;
}
if
(
fmt_isinf
(
static_cast
<
double
>
(
value
)))
{
if
(
isinfinity
(
static_cast
<
double
>
(
value
)))
{
// Format infinity ourselves because sprintf's output is not consistent
// across platforms.
std
::
size_t
size
=
4
;
...
...
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