summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-27 21:39:40 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-27 21:39:40 +0000
commit4fc5d0717682386fa7b28fff031f840fb7c8f489 (patch)
tree59f73de9eb7989f1bcbf1e12b2dba4e93810e5b3 /vl.c
parent00f82b8a3166514f634c1c010c3b6175bcc6403b (diff)
Fix a regression introduced by my previous commit, ram_size is now
unsigned. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4266 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 2b6e459b22..c30a87faa7 100644
--- a/vl.c
+++ b/vl.c
@@ -8277,7 +8277,7 @@ int main(int argc, char **argv)
machine = first_machine;
cpu_model = NULL;
initrd_filename = NULL;
- ram_size = -1;
+ ram_size = 0;
vga_ram_size = VGA_RAM_SIZE;
#ifdef CONFIG_GDBSTUB
use_gdbstub = 0;
@@ -9000,7 +9000,7 @@ int main(int argc, char **argv)
} else
ram_size = phys_ram_size;
} else {
- if (ram_size < 0)
+ if (ram_size == 0)
ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
phys_ram_size += ram_size;