mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 22:33:53 -06:00
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:
parent
a2afc2c163
commit
7eb053494c
1 changed files with 2 additions and 2 deletions
4
cutils.c
4
cutils.c
|
@ -304,8 +304,8 @@ int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix)
|
||||||
if (isnan(val) || endptr == nptr || errno != 0) {
|
if (isnan(val) || endptr == nptr || errno != 0) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
integral = modf(val, &fraction);
|
fraction = modf(val, &integral);
|
||||||
if (integral != 0) {
|
if (fraction != 0) {
|
||||||
mul_required = 1;
|
mul_required = 1;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue