diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
commit | e7d3e20912baa82965108997013710223152772c (patch) | |
tree | 02d4ed8e367319884582025cb1da2f4c45a05190 /sys/src/cmd/python/Objects | |
parent | 9adf75a7091c7bd2afefbeba62a2525d50df4404 (diff) |
remove keyboard stuff from other ports, make openssl and python compile on arm
Diffstat (limited to 'sys/src/cmd/python/Objects')
-rw-r--r-- | sys/src/cmd/python/Objects/fileobject.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/src/cmd/python/Objects/fileobject.c b/sys/src/cmd/python/Objects/fileobject.c index 869ded916..124767ccd 100644 --- a/sys/src/cmd/python/Objects/fileobject.c +++ b/sys/src/cmd/python/Objects/fileobject.c @@ -553,8 +553,10 @@ file_seek(PyFileObject *f, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) offset = PyInt_AsLong(offobj); #else - offset = PyLong_Check(offobj) ? - PyLong_AsLongLong(offobj) : PyInt_AsLong(offobj); + if(PyLong_Check(offobj)) + offset = PyLong_AsLongLong(offobj); + else + offset = PyInt_AsLong(offobj); #endif if (PyErr_Occurred()) return NULL; @@ -610,9 +612,10 @@ file_truncate(PyFileObject *f, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) newsize = PyInt_AsLong(newsizeobj); #else - newsize = PyLong_Check(newsizeobj) ? - PyLong_AsLongLong(newsizeobj) : - PyInt_AsLong(newsizeobj); + if(PyLong_Check(newsizeobj)) + newsize = PyLong_AsLongLong(newsizeobj); + else + newsize = PyInt_AsLong(newsizeobj); #endif if (PyErr_Occurred()) return NULL; |