Bug 235390

Summary: build fails - overloading ambiguity
Product: kdemultimedia Reporter: tropikhajma <tropikhajma>
Component: generalAssignee: Multimedia Developers <kde-multimedia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: patch

Description tropikhajma 2010-04-25 21:35:09 UTC
Version:            (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

building kdemultimedia using Sun Studio fails with
...
"/.../srcdir/libkcompactdisc/wmlib_interface.cpp", line 265: Error: Overloading ambiguity between "std::abs(int)" and "std::abs(long)".
"/.../srcdir/libkcompactdisc/wmlib_interface.cpp", line 268: Error: Overloading ambiguity between "std::abs(int)" and "std::abs(long)".


the attached patch fixes the issue
Comment 1 tropikhajma 2010-04-25 21:36:46 UTC
Created attachment 43033 [details]
patch

but perhaps static_cast<long> would be better
Comment 2 Christoph Feck 2010-10-12 03:53:32 UTC
SVN commit 1184980 by cfeck:

SVN_SILENT fix Sun Studio build

Patch by tropikhajma
BUG: 235390


 M  +2 -2      wmlib_interface.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1184980