installer: Use unsigned long for holding hw.physmem's value.
authorSascha Wildner <saw@online.de>
Thu, 5 Feb 2009 22:21:18 +0000 (23:21 +0100)
committerSascha Wildner <saw@online.de>
Thu, 5 Feb 2009 22:21:52 +0000 (23:21 +0100)
commit1c6a6c4c7753e067468010070544b903a054069e
tree0df8c666057a0ce94b338398b7a0984d27cb24c7
parent18b332b2b0c2c34489b53ef293e41d020c960079
installer: Use unsigned long for holding hw.physmem's value.

The previous signed long led to the wrong calculation of default swap size
on machines with >2GB main memory.

Reported-by: corecode
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1257>
contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c