[ expat-Bugs-2978002 ] Pointer cast in tests/runtest.c
"SourceForge.net" <[email protected]> Sun, 28 Mar 2010 14:16:55 +0000
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2978002, was opened at 2010-03-28 16:16 Message generated for change (Tracker Item Submitted) made by rubenvb 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: Open Resolution: None Priority: 5 Private: No Submitted By: mael_storm (rubenvb) Assigned to: Nobody/Anonymous (nobody) 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2978002&group_id=10127