summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2011-07-25 09:47:29 -0400
committerDavid Cantrell <dcantrell@redhat.com>2011-07-25 09:47:29 -0400
commite069a71aedf7837be862c91990fe45fdeca8f8b7 (patch)
tree6477c67fc0c2fa560d81a214bc5ca8710a695b02
parent422194357976b0f4e4b7d3c02615a6628bd7617a (diff)
downloadanaconda-e069a71aedf7837be862c91990fe45fdeca8f8b7.tar.gz
anaconda-e069a71aedf7837be862c91990fe45fdeca8f8b7.tar.xz
anaconda-e069a71aedf7837be862c91990fe45fdeca8f8b7.zip
Use unsigned long long type in doTotalMemory()
Followup to e24592f036ca1d8d0169d215ef45e333c442dacc, this changes the [hopefully] last remaining int used to represent the total system memory to an unsigned long long. Patch from Anton Blanchard <anton AT samba DOT org>
-rw-r--r--pyanaconda/isys/isys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyanaconda/isys/isys.c b/pyanaconda/isys/isys.c
index 33d72ccde..4817e1782 100644
--- a/pyanaconda/isys/isys.c
+++ b/pyanaconda/isys/isys.c
@@ -656,8 +656,8 @@ static PyObject * doIsWirelessDevice(PyObject * s, PyObject * args) {
}
static PyObject * doTotalMemory(PyObject * s) {
- int tm = totalMemory();
- return PyInt_FromLong(tm);
+ unsigned long long tm = totalMemory();
+ return PyLong_FromUnsignedLongLong(tm);
}
/* vim:set shiftwidth=4 softtabstop=4: */