Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1332

64-bit Windows build failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.8.0
    • Samples/Tests
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbuck Robert Buck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: