Commit 7eb05349 authored by Jes Sorensen's avatar Jes Sorensen Committed by Kevin Wolf
Browse files

strtosz(): Fix name confusion in use of modf()



Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent a2afc2c1
......@@ -304,8 +304,8 @@ int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix)
if (isnan(val) || endptr == nptr || errno != 0) {
goto fail;
}
integral = modf(val, &fraction);
if (integral != 0) {
fraction = modf(val, &integral);
if (fraction != 0) {
mul_required = 1;
}
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment