Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
-
Windows XP a64, Visual Studio 2005 Beta
Description
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);