mirror of https://git.wownero.com/dsc/mxe.git
openscenegraph-3: Use uintptr_t
Prevents theoretical undefined (or implementation-defined?) behavior on 32-bit machines.
This commit is contained in:
parent
5c61e160be
commit
4cb95b14f3
|
@ -19,7 +19,7 @@ index 9f2b3c7..98e0c19 100644
|
|||
std::stringstream ss;
|
||||
ss << osgDB::getFilePath(baseName) << osgDB::getNativePathSeparator();
|
||||
- ss << (long int)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
+ ss << (intptr_t)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
+ ss << (uintptr_t)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
std::string filename = ss.str();
|
||||
if (osgDB::writeImageFile(*image, filename)) {
|
||||
image->setFileName(filename);
|
||||
|
|
Loading…
Reference in New Issue