This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cast from pointer to integer of different size
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: doko, gvanrossum, rhettinger
Priority: normal Keywords:

Created on 2003-07-30 18:36 by doko, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (3)
msg17475 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2003-07-30 18:36
this warning (gcc-3.2 or gcc-3.3) was introduced betwen
20030321 and 20030505, when compiling on 64bit targets

gcc -c  -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I../Include  -DPy_BUILD_CORE -o Parser/grammar.o
../Parser/grammar.c
../Parser/grammar.c: In function `_Py_addlabel':
../Parser/grammar.c:107: warning: cast from pointer to
integer of different size

                printf("Label @ %08x, %d: %s\n",
(unsigned)ll,  ...

this should be casted to an unsigned long, and %lx format.

msg17476 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-08-02 08:58
Logged In: YES 
user_id=80475

Guido, this was your code addition in April 2003.
msg17477 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2004-03-20 22:45
Logged In: YES 
user_id=6380

No, it should be %8p.  I've done that in CVS.
History
Date User Action Args
2022-04-10 16:10:21adminsetgithub: 38975
2003-07-30 18:36:14dokocreate