New submission from Serhiy Storchaka:

Preprocessor directives emit error in PyLong_FromVoidPtr:

PyLong_FromVoidPtr: sizeof(void*) > sizeof(long), but no long long

if HAVE_LONG_LONG not defined.

Here is a patch which adds missing branch (lost somewhere in 2->3 translation). 
 Also removed non-needed optimization which can cause undefined behavior (C 
Standard not guarantee (long long)NULL == 0).

----------
components: Interpreter Core
files: long_fromvoidptr.patch
keywords: patch
messages: 173257
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Objects/longobject.c not compiled without long long
type: compile error
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27610/long_fromvoidptr.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16277>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to