1 message in org.python.python-bugs-list[ python-Bugs-780407 ] cast from poin...
FromSent OnAttachments
SourceForge.netMar 20, 2004 5:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-780407 ] cast from pointer to integer of different sizeActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 20, 2004 5:45:26 pm
List:org.python.python-bugs-list

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.

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