Bug 235390 - build fails - overloading ambiguity
Summary: build fails - overloading ambiguity
Status: RESOLVED FIXED
Alias: None
Product: kdemultimedia
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-25 21:35 UTC by tropikhajma
Modified: 2010-10-12 03:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (605 bytes, patch)
2010-04-25 21:36 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
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