[Python-bugs-list] [ python-Bugs-780407 ] cast from pointer to integer of different size

SourceForge.net noreply@sourceforge.net
Wed, 30 Jul 2003 11:36:14 -0700


Bugs item #780407, was opened at 2003-07-30 18:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780407&group_id=5470

Category: Parser/Compiler
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: cast from pointer to integer of different size

Initial Comment:
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.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780407&group_id=5470