diff --git a/src/osgPlugins/hdr/hdrloader.cpp b/src/osgPlugins/hdr/hdrloader.cpp index 5ff6171af..4d0709fa6 100644 --- a/src/osgPlugins/hdr/hdrloader.cpp +++ b/src/osgPlugins/hdr/hdrloader.cpp @@ -138,7 +138,7 @@ bool HDRLoader::load(const char *_fileName, HDRLoaderResult &_res) inline float convertComponent(int _expo, int _val) { - return ldexp( _val, _expo-8); + return ldexp( static_cast(_val), _expo-8); } void workOnRGBE(RGBE *_scan, int _len, float *_cols)