liberty reader rm static_casts
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
117e8dcce8
commit
3797548fd8
|
|
@ -4720,20 +4720,18 @@ LibertyReader::makeFloatTable(LibertyAttr *attr,
|
||||||
else
|
else
|
||||||
libWarn(1258, attr, "%s is not a list of floats.", attr->name());
|
libWarn(1258, attr, "%s is not a list of floats.", attr->name());
|
||||||
if (row->size() != cols) {
|
if (row->size() != cols) {
|
||||||
libWarn(1259, attr, "table row has %u columns but axis has %d.",
|
libWarn(1259, attr, "table row has %zu columns but axis has %zu.",
|
||||||
// size_t is long on 64 bit ports.
|
row->size(),
|
||||||
static_cast<unsigned>(row->size()),
|
cols);
|
||||||
static_cast<unsigned>(cols));
|
|
||||||
// Fill out row columns with zeros.
|
// Fill out row columns with zeros.
|
||||||
for (size_t c = row->size(); c < cols; c++)
|
for (size_t c = row->size(); c < cols; c++)
|
||||||
row->push_back(0.0);
|
row->push_back(0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (table->size() != rows) {
|
if (table->size() != rows) {
|
||||||
libWarn(1260, attr, "table has %u rows but axis has %d.",
|
libWarn(1260, attr, "table has %zu rows but axis has %zu.",
|
||||||
// size_t is long on 64 bit ports.
|
table->size(),
|
||||||
static_cast<unsigned>(table->size()),
|
rows);
|
||||||
static_cast<unsigned>(rows));
|
|
||||||
// Fill with zero'd rows.
|
// Fill with zero'd rows.
|
||||||
for (size_t r = table->size(); r < rows; r++) {
|
for (size_t r = table->size(); r < rows; r++) {
|
||||||
FloatSeq *row = new FloatSeq;
|
FloatSeq *row = new FloatSeq;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue