Re: error: call of overloaded 'abs(unsigned int)' is ambiguous

2017-03-21 Thread Martin Gansser
> Martin Gansser wrote on 03/21/2017 07:17 PM: > > Well, abs is abs(int). Here sr is unsigned int, so > at the line abs(real - sr), "real - sr" has type "unsigned int", > so this is ambiguous. > > Maybe abs(real - (int)sr) is intended? > > Regards, > Mamoru took your suggestion, thanks. ___

Re: error: call of overloaded 'abs(unsigned int)' is ambiguous

2017-03-21 Thread Mamoru TASAKA
Martin Gansser wrote on 03/21/2017 07:17 PM: the build of vdr-mp3 fails during the fc26 mass build with this error: error: call of overloaded 'abs(unsigned int)' is ambiguous build.log: http://koji.rpmfusion.org/kojifiles/work/tasks/811/90811/build.log This is the part of the aff

error: call of overloaded 'abs(unsigned int)' is ambiguous

2017-03-21 Thread Martin Gansser
the build of vdr-mp3 fails during the fc26 mass build with this error: error: call of overloaded 'abs(unsigned int)' is ambiguous build.log: http://koji.rpmfusion.org/kojifiles/work/tasks/811/90811/build.log This is the part of the affected code: bool cOutputOss::Reset(unsigned int