mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix clang warning: using floating point absolute value function 'fabsf'
when argument is of integer type /retroshare-gui/src/gui/statistics/BWGraph.cpp:83: warning: using floating point absolute value function 'fabsf' when argument is of integer type [-Wabsolute-value] if(!lst.empty() && fabsf(lst.back().first - ms) > _update_period_msecs*1.2 )
This commit is contained in:
parent
a0ac6b7ca0
commit
6ee65bc98a
@ -80,7 +80,7 @@ void BWGraphSource::update()
|
||||
{
|
||||
std::list<std::pair<qint64,float> >& lst(_points[it->first]) ;
|
||||
|
||||
if(!lst.empty() && fabsf(lst.back().first - ms) > _update_period_msecs*1.2 )
|
||||
if(!lst.empty() && fabsf((float)(lst.back().first - ms)) > _update_period_msecs*1.2 )
|
||||
{
|
||||
lst.push_back(std::make_pair(lst.back().first,0)) ;
|
||||
lst.push_back(std::make_pair( ms,0)) ;
|
||||
|
Loading…
Reference in New Issue
Block a user