From: Jes Sorensen Date: Mon, 24 Jan 2011 15:33:30 +0000 (+0100) Subject: strtosz(): Fix name confusion in use of modf() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7eb053494c76bb417f83b6e6784a5dbb27638dba;p=qemu.git strtosz(): Fix name confusion in use of modf() Signed-off-by: Jes Sorensen Signed-off-by: Kevin Wolf --- diff --git a/cutils.c b/cutils.c index 78d35e23ca..369a016875 100644 --- a/cutils.c +++ b/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) { goto fail; } - integral = modf(val, &fraction); - if (integral != 0) { + fraction = modf(val, &integral); + if (fraction != 0) { mul_required = 1; } /*