[Expat-bugs] [ expat-Bugs-2978002 ] Pointer cast in tests/runtest.c

SourceForge.net noreply at sourceforge.net
Sun Mar 4 01:22:27 CET 2012


Bugs item #2978002, was opened at 2010-03-28 07:16
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2978002&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Platform Specific
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: rubenvb (rubenvb)
>Assigned to: Karl Waclawek (kwaclaw)
Summary: Pointer cast in tests/runtest.c

Initial Comment:
Expat 2.0.1
Under mingw-w64, which uses long long (not equal to long, which is 32-bit under Windows x64) for pointers:

line 1257: illegal cast to long. Should be something like long long or intptr_t for windows x64

I'm not sure about the rest of the line. If the value will not be used as a pointer anymore, the long=1+intptr_t is okay, but if the long value is used as pointer later, it will need to be adapted as well.

Howto build: configure --host=x86_64-w64-mingw32 && make && make check
make check passes all tests.

PS: there's also a lot of warnings about gcc-deprecated casts of string constants to char* in gcc-4.4 and up

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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2012-03-03 16:22

Message:
Was fixed with a modified patch included by the same author in a second bug
report for the same issue. Closing this one as a duplicate of #3287849
(although it was the first report).

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2978002&group_id=10127


More information about the Expat-bugs mailing list