sim-card
/
qemu
Archived
10
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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