码迷,mamicode.com
首页 > 其他好文 > 详细

x86_64 xercexc: error: cast from 'const void*' to 'long int' loses precision [-fpermissive]

时间:2014-11-12 14:59:45      阅读:398      评论:0      收藏:0      [点我收藏+]

标签:64位   mingw   xercesc   

mingw编译x86_64版本xerces-c-2.8.0:

修改src/xercesc/util/HashPtr.cpp:
unsigned int HashPtr::getHashVal(const void *const key, unsigned int mod
                                 , MemoryManager* const)
{
 return ((long long)key % (unsigned long)mod);
}

修改src/xercesc/internal/XSerializeEngine.cpp:
inline XMLSize_t XSerializeEngine::alignAdjust(XMLSize_t size) const
{
    XMLSize_t remainder = (long long) fBufCur % size;
    return (remainder == 0) ? 0 : (size - remainder);
}

x86_64 xercexc: error: cast from 'const void*' to 'long int' loses precision [-fpermissive]

标签:64位   mingw   xercesc   

原文地址:http://blog.csdn.net/cuterhei/article/details/41043593

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!