[ expat-Bugs-1105135 ] Win64 portability warnings
"SourceForge.net" <[email protected]> Sun, 30 Jan 2005 07:41:47 -0800
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1105135, was opened at 2005-01-19 10:45 Message generated for change (Comment added) made by hgoldman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1105135&group_id=10127 Category: None Group: Platform Specific Status: Open Resolution: None Priority: 5 Submitted By: Henrik Goldman (hgoldman) Assigned to: Nobody/Anonymous (nobody) Summary: Win64 portability warnings Initial Comment: I am trying to get my software ready for Win64 (AMD64 / IA64). Currently I'm using Visual Studio .NET 2003 with /Wp64 switch enabled. However theres some missing typecasts in expat to make it compile clean. Instead of waiting for someone to fix it I can probably do it myself but I'm only willing to if my changes will be considered for next release. I'm rather sure all the warnings will go away with apropriate typecasts. Please advise me how to continue. I'm using the downloaded version of expat 1.95.8: c:\myprog\shared\libs\expat-1.95.8\lib\xmltok_impl.c (1717) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data c:\myprog\shared\libs\expat-1.95.8\lib\xmltok_impl.c (1717) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data c:\myprog\shared\libs\expat-1.95.8\lib\xmltok_impl.c (1717) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1604) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1606) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1615) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1628) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1642) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1761) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1770) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(1771) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2318) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2323) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2511) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2516) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2541) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(2550) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(3067) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(3076) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(3938) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(4623) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(4669) : warning C4244: '=' : conve rsion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(5130) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(5135) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(6017) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ../../shared\libs\expat-1.95.8\lib\xmlparse.c(6031) : warning C4244: 'initializi ng' : conversion from '__w64 int' to 'int', possible loss of data ---------------------------------------------------------------------- >Comment By: Henrik Goldman (hgoldman) Date: 2005-01-30 16:41 Message: Logged In: YES user_id=798004 Ok, so I patched my local 1.95.8 distribution and created a diff file. All the patches I made, are __int64 to int typecast warnings. All of them were fixed by adding parentheses and adding a (int) typecast. ---------------------------------------------------------------------- Comment By: Fred L. Drake, Jr. (fdrake) Date: 2005-01-27 06:46 Message: Logged In: YES user_id=3066 We'll certainly consider patches. The best way to proceed would be to attach a patch to this bug report. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1105135&group_id=10127