]> git.proxmox.com Git - qemu.git/commitdiff
cmd: fix operator precedence
authorFrediano Ziglio <freddy77@gmail.com>
Mon, 20 Jun 2011 16:08:57 +0000 (17:08 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 20 Jun 2011 16:08:57 +0000 (17:08 +0100)
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
cmd.c

diff --git a/cmd.c b/cmd.c
index db2c9c4c5ee066ca43a9210b6fc6d25d80c40033..ecca167399bc817358430ad4d730c0d309a9d1a0 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -486,7 +486,7 @@ timestr(
                        snprintf(ts, size, "%u:%02u.%02u",
                                (unsigned int) MINUTES(tv->tv_sec),
                                (unsigned int) SECONDS(tv->tv_sec),
-                               (unsigned int) usec * 100);
+                               (unsigned int) (usec * 100));
                        return;
                }
                format |= VERBOSE_FIXED_TIME;   /* fallback if hours needed */
@@ -497,9 +497,9 @@ timestr(
                        (unsigned int) HOURS(tv->tv_sec),
                        (unsigned int) MINUTES(tv->tv_sec),
                        (unsigned int) SECONDS(tv->tv_sec),
-                       (unsigned int) usec * 100);
+                       (unsigned int) (usec * 100));
        } else {
-               snprintf(ts, size, "0.%04u sec", (unsigned int) usec * 10000);
+               snprintf(ts, size, "0.%04u sec", (unsigned int) (usec * 10000));
        }
 }