openscenegraph-3: Use uintptr_t

Prevents theoretical undefined (or implementation-defined?) behavior on 32-bit machines.
This commit is contained in:
Timothy Gu 2015-10-17 17:01:10 -07:00
parent 5c61e160be
commit 4cb95b14f3
1 changed files with 1 additions and 1 deletions

View File

@ -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);