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

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Jes Sorensen 2011-01-24 16:33:30 +01:00 committed by Kevin Wolf
parent a2afc2c163
commit 7eb053494c

View File

@ -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;
}
/*