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

SourceForge.net noreply@sourceforge.net
Sat, 02 Aug 2003 01:58:39 -0700


Bugs item #780407, was opened at 2003-07-30 13:36
Message generated for change (Comment added) made by rhettinger
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: Guido van Rossum (gvanrossum)
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.



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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-08-02 03:58

Message:
Logged In: YES 
user_id=80475

Guido, this was your code addition in April 2003.


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

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