Fix clang warnings about wrong abs
using integer absolute value function 'abs' when argument is of floating
point type [-Werror,-Wabsolute-value]
if (abs((clk_period - sim_period) / clk_period) > .1)
^
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
parent
071c655421
commit
ae01bbbca0
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
namespace sta {
|
||||
|
||||
using std::abs;
|
||||
using std::min;
|
||||
using std::to_string;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue