From 3797548fd85823385ab9456eeadd1d0bf8f656e9 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 15 Jan 2025 12:21:57 -0700 Subject: [PATCH] liberty reader rm static_casts Signed-off-by: James Cherry --- liberty/LibertyReader.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/liberty/LibertyReader.cc b/liberty/LibertyReader.cc index 70b314ea..5c3d4560 100644 --- a/liberty/LibertyReader.cc +++ b/liberty/LibertyReader.cc @@ -4720,20 +4720,18 @@ LibertyReader::makeFloatTable(LibertyAttr *attr, else libWarn(1258, attr, "%s is not a list of floats.", attr->name()); if (row->size() != cols) { - libWarn(1259, attr, "table row has %u columns but axis has %d.", - // size_t is long on 64 bit ports. - static_cast(row->size()), - static_cast(cols)); + libWarn(1259, attr, "table row has %zu columns but axis has %zu.", + row->size(), + cols); // Fill out row columns with zeros. for (size_t c = row->size(); c < cols; c++) row->push_back(0.0); } } if (table->size() != rows) { - libWarn(1260, attr, "table has %u rows but axis has %d.", - // size_t is long on 64 bit ports. - static_cast(table->size()), - static_cast(rows)); + libWarn(1260, attr, "table has %zu rows but axis has %zu.", + table->size(), + rows); // Fill with zero'd rows. for (size_t r = table->size(); r < rows; r++) { FloatSeq *row = new FloatSeq;