Bug 78244 - IRIX C++ compiler needs explicit floating point type
Summary: IRIX C++ compiler needs explicit floating point type
Status: RESOLVED FIXED
Alias: None
Product: kfile-plugins
Classification: Applications
Component: jpeg (show other bugs)
Version: unspecified
Platform: Compiled Sources IRIX
: NOR normal
Target Milestone: ---
Assignee: Carsten Pfeiffer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 19:07 UTC by The Written Word
Modified: 2004-04-12 20:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch (958 bytes, patch)
2004-03-22 19:07 UTC, The Written Word
Details

Note You need to log in before you can comment on or make changes to this bug.
Description The Written Word 2004-03-22 19:07:26 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources
Compiler:          6.4.1 
OS:          Irix

IRIX C++ compiler has a problem determining which overloaded function to match log(2) to. Fix is to use log(2.0).
Comment 1 The Written Word 2004-03-22 19:07:44 UTC
Created attachment 5345 [details]
Patch
Comment 2 mcamen 2004-04-12 19:51:56 UTC
CVS commit by mcamen: 

IRIX MipsPro compiler has a problem determining which overloaded function to
match log(2) to. Fix is to use log(2.0).

CCMAIL: 78244-done@bugs.kde.org


  M +2 -2      exif.cpp   1.7


--- kdegraphics/kfile-plugins/jpeg/exif.cpp  #1.6:1.7
@@ -570,5 +570,5 @@ void ExifData::ProcessExifDir(unsigned c
                 if (ExifData::ApertureFNumber == 0){
                     ExifData::ApertureFNumber
-                        = (float)exp(ConvertAnyFormat(ValuePtr, Format)*log(2)*0.5);
+                        = (float)exp(ConvertAnyFormat(ValuePtr, Format)*log(2.0)*0.5);
                 }
                 break;
@@ -597,5 +597,5 @@ void ExifData::ProcessExifDir(unsigned c
                 if (ExifData::ExposureTime == 0){
                     ExifData::ExposureTime
-                        = (float)(1/exp(ConvertAnyFormat(ValuePtr, Format)*log(2)));
+                        = (float)(1/exp(ConvertAnyFormat(ValuePtr, Format)*log(2.0)));
                 }
                 break;


Comment 3 mcamen 2004-04-12 20:00:33 UTC
Will be in KDE >= 3.2.3 (KDE 3.2.2 is already tagged).