summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 18:28:12 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 18:28:12 +0000
commit4f4fbf77ade902f929959b0e10fbf7e56bb85816 (patch)
tree4413dfc7cac8afc4bc6379a2c6cc8ef662e24df6 /monitor.c
parent26a76461f259031f2c30cd5843a5ca91e056cf03 (diff)
downloadqemu-4f4fbf77ade902f929959b0e10fbf7e56bb85816.zip
64 bit support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2019 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index e495c50967..9a18639c4b 100644
--- 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");
}