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:
Matt Liberty 2024-07-29 15:55:02 +00:00
parent 071c655421
commit ae01bbbca0
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@
namespace sta {
using std::abs;
using std::min;
using std::to_string;