News:

--

Main Menu

abs(unsigned int) makes no sense

Started by ajschult, June 26, 2016, 03:20:58 AM

Previous topic - Next topic

ajschult

In Telecide_getFrame.cpp, gcc 6.1.1 now complains,


/home/andrew/build/avidemux/avidemux2/avidemux_plugins/ADM_videoFilters6/telecide/Telecide_getFrame.cpp: In member function ââ,¬Ëœvirtual bool Telecide::getNextFrame(uint32_t*, ADMImage*)ââ,¬â,,¢:
/home/andrew/build/avidemux/avidemux2/avidemux_plugins/ADM_videoFilters6/telecide/Telecide_getFrame.cpp:243:85: error: call of overloaded ââ,¬Ëœabs(unsigned int)ââ,¬â,,¢ is ambiguous
                                 else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric;


and


/home/andrew/build/avidemux/avidemux2/avidemux_plugins/ADM_videoFilters6/telecide/Telecide_getFrame.cpp:286:101: error: call of overloaded ââ,¬Ëœabs(unsigned int)ââ,¬â,,¢ is ambiguous
                                                 else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric;


predicted_metric and lowest are both unsigned ints.