Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
1acb2e15
Commit
1acb2e15
authored
Nov 09, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed _ABS to be defined as MY_ABS.
parent
06898c80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
popt.c
popt/popt.c
+3
-3
No files found.
popt/popt.c
View file @
1acb2e15
...
@@ -965,10 +965,10 @@ int poptGetNextOpt(poptContext con)
...
@@ -965,10 +965,10 @@ int poptGetNextOpt(poptContext con)
if
((
opt
->
argInfo
&
POPT_ARG_MASK
)
==
POPT_ARG_DOUBLE
)
{
if
((
opt
->
argInfo
&
POPT_ARG_MASK
)
==
POPT_ARG_DOUBLE
)
{
*
((
double
*
)
opt
->
arg
)
=
aDouble
;
*
((
double
*
)
opt
->
arg
)
=
aDouble
;
}
else
{
}
else
{
#define
_ABS(a)
((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a))
#define
MY_ABS(a)
((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a))
if
((
_ABS
(
aDouble
)
-
FLT_MAX
)
>
DBL_EPSILON
)
if
((
MY
_ABS
(
aDouble
)
-
FLT_MAX
)
>
DBL_EPSILON
)
return
POPT_ERROR_OVERFLOW
;
return
POPT_ERROR_OVERFLOW
;
if
((
FLT_MIN
-
_ABS
(
aDouble
))
>
DBL_EPSILON
)
if
((
FLT_MIN
-
MY
_ABS
(
aDouble
))
>
DBL_EPSILON
)
return
POPT_ERROR_OVERFLOW
;
return
POPT_ERROR_OVERFLOW
;
*
((
float
*
)
opt
->
arg
)
=
aDouble
;
*
((
float
*
)
opt
->
arg
)
=
aDouble
;
}
}
...
...
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