64-bit Windows build failures
-----------------------------

         Key: XERCESC-1332
         URL: http://issues.apache.org/jira/browse/XERCESC-1332
     Project: Xerces-C++
        Type: Bug
  Components: Samples/Tests  
    Versions: 2.6.0    
 Environment: Windows XP a64, Visual Studio 2005 Beta
    Reporter: Robert Buck


Issue: Coding error; longs are not 64-bits on 64-bit Windows.

[1] 
SimpleHashPtr.cpp
..\..\..\..\..\tests\MemHandlerTest\SimpleHashPtr.cpp(32) : error C2440: 'type 
cast' : cannot convert from 'const void *const ' to 'long'
        The target is not large enough

unsigned int SimpleHashPtr::getHashVal(const void *const key, unsigned int mod)
{
>> return ((long)key % (unsigned long)mod);
}

[2]

PSVIWriterHandlers.cpp
..\..\..\..\..\samples\PSVIWriter\PSVIWriterHandlers.cpp(1618) : error C2440: 
'type cast' : cannot convert from 'xercesc_2_6::XSObject *' to 'unsigned long'
        The target is not large enough

>>      XMLString::binToText((unsigned long)obj, objLoc, 8, 16);



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to