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

SourceForge.net noreply at sourceforge.net
Sat Mar 20 17:45:01 EST 2004


Bugs item #780407, was opened at 2003-07-30 14:36
Message generated for change (Comment added) made by gvanrossum
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: Closed
>Resolution: Fixed
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: Guido van Rossum (gvanrossum)
Date: 2004-03-20 17:45

Message:
Logged In: YES 
user_id=6380

No, it should be %8p.  I've done that in CVS.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-08-02 04: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



More information about the Python-bugs-list mailing list