projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2afc2c
)
strtosz(): Fix name confusion in use of modf()
author
Jes Sorensen
<Jes.Sorensen@redhat.com>
Mon, 24 Jan 2011 15:33:30 +0000
(16:33 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Mon, 31 Jan 2011 09:03:00 +0000
(10:03 +0100)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
cutils.c
patch
|
blob
|
history
diff --git
a/cutils.c
b/cutils.c
index 78d35e23caa70979d31b17e51d20ce9ea7e39b03..369a01687575945dfddadf27a34e7b1d767f37f1 100644
(file)
--- 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;
}
/*