]> git.proxmox.com Git - qemu.git/commitdiff
64 bit support
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 Jun 2006 18:28:12 +0000 (18:28 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 Jun 2006 18:28:12 +0000 (18:28 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2019 c046a42c-6fe2-441c-8c8c-71466251a162

monitor.c

index e495c50967bc9a3bd15ca32cc1d4cf9209d43898..9a18639c4b2fa0f2574bf9e1241a6fb9b3e7c90f 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1584,8 +1584,11 @@ static target_long expr_unary(void)
         n = 0;
         break;
     default:
-        /* XXX: 64 bit version */
+#if TARGET_LONG_BITS == 64
+        n = strtoull(pch, &p, 0);
+#else
         n = strtoul(pch, &p, 0);
+#endif
         if (pch == p) {
             expr_error("invalid char in expression");
         }