From 7eb053494c76bb417f83b6e6784a5dbb27638dba Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Mon, 24 Jan 2011 16:33:30 +0100 Subject: strtosz(): Fix name confusion in use of modf() Signed-off-by: Jes Sorensen Signed-off-by: Kevin Wolf --- cutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cutils.c') diff --git a/cutils.c b/cutils.c index 78d35e2..369a016 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; } /* -- cgit v1.1