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/Modules/bz2module.c | |
parent | 9adf75a7091c7bd2afefbeba62a2525d50df4404 (diff) |
remove keyboard stuff from other ports, make openssl and python compile on arm
Diffstat (limited to 'sys/src/cmd/python/Modules/bz2module.c')
-rw-r--r-- | sys/src/cmd/python/Modules/bz2module.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/cmd/python/Modules/bz2module.c b/sys/src/cmd/python/Modules/bz2module.c index 9d92cf6bb..dec7a987c 100644 --- a/sys/src/cmd/python/Modules/bz2module.c +++ b/sys/src/cmd/python/Modules/bz2module.c @@ -1007,8 +1007,10 @@ BZ2File_seek(BZ2FileObject *self, 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; |