From 9bdb3f55dd6e3c7f7a913483383a9f565566ba1d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 18 Feb 2016 10:57:19 +0000 Subject: [PATCH] Replaced (long int) with more portable (GLint64) --- src/osgPlugins/osgjs/WriteVisitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/osgjs/WriteVisitor.cpp b/src/osgPlugins/osgjs/WriteVisitor.cpp index dad0c3d36..9f7dc3109 100644 --- a/src/osgPlugins/osgjs/WriteVisitor.cpp +++ b/src/osgPlugins/osgjs/WriteVisitor.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -225,7 +226,7 @@ JSONObject* createImage(osg::Image* image, bool inlineImages, int maxTextureDime // no image file so use this inline name image and create a file std::stringstream ss; ss << osgDB::getFilePath(baseName) << osgDB::getNativePathSeparator(); - ss << (long int)image << ".inline_conv_generated.png"; // write the pointer location + ss << (int64_t)image << ".inline_conv_generated.png"; // write the pointer location std::string filename = ss.str(); if (osgDB::writeImageFile(*image, filename)) { image->setFileName(filename);