diff options
| author | Jes Sorensen | 2011-01-24 16:33:30 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2011-01-31 10:03:00 +0100 |
| commit | 7eb053494c76bb417f83b6e6784a5dbb27638dba (patch) | |
| tree | 8453faf31f5dfe80143f2714b607b7c4b6702933 | |
| parent | strtosz() use qemu_toupper() to simplify switch statement (diff) | |
| download | qemu-7eb053494c76bb417f83b6e6784a5dbb27638dba.tar.gz qemu-7eb053494c76bb417f83b6e6784a5dbb27638dba.tar.xz qemu-7eb053494c76bb417f83b6e6784a5dbb27638dba.zip | |
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>
| -rw-r--r-- | cutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } /* |
