77#include < cassert>
88#include < cmath>
99#include < cstddef>
10+ #include < cstdint>
1011#include < iterator>
1112#include < limits>
1213#include < list>
@@ -493,36 +494,36 @@ void io::Parser::getSBoxCoords(odb::dbSBox* box,
493494 int y1 = box->yMin ();
494495 int x2 = box->xMax ();
495496 int y2 = box->yMax ();
496- uint dx = box->getDX ();
497- uint dy = box->getDY ();
498- uint w;
497+ uint32_t dx = box->getDX ();
498+ uint32_t dy = box->getDY ();
499+ uint32_t w;
499500 switch (box->getDirection ()) {
500501 case odb::dbSBox::UNDEFINED: {
501502 bool dx_even = ((dx & 1 ) == 0 );
502503 bool dy_even = ((dy & 1 ) == 0 );
503504 if (dx_even && dy_even) {
504505 if (dy < dx) {
505506 w = dy;
506- uint dw = dy >> 1 ;
507+ uint32_t dw = dy >> 1 ;
507508 y1 += dw;
508509 y2 -= dw;
509510 assert (y1 == y2);
510511 } else {
511512 w = dx;
512- uint dw = dx >> 1 ;
513+ uint32_t dw = dx >> 1 ;
513514 x1 += dw;
514515 x2 -= dw;
515516 assert (x1 == x2);
516517 }
517518 } else if (dx_even) {
518519 w = dx;
519- uint dw = dx >> 1 ;
520+ uint32_t dw = dx >> 1 ;
520521 x1 += dw;
521522 x2 -= dw;
522523 assert (x1 == x2);
523524 } else if (dy_even) {
524525 w = dy;
525- uint dw = dy >> 1 ;
526+ uint32_t dw = dy >> 1 ;
526527 y1 += dw;
527528 y2 -= dw;
528529 assert (y1 == y2);
@@ -533,15 +534,15 @@ void io::Parser::getSBoxCoords(odb::dbSBox* box,
533534 }
534535 case odb::dbSBox::HORIZONTAL: {
535536 w = dy;
536- uint dw = dy >> 1 ;
537+ uint32_t dw = dy >> 1 ;
537538 y1 += dw;
538539 y2 -= dw;
539540 assert (y1 == y2);
540541 break ;
541542 }
542543 case odb::dbSBox::VERTICAL: {
543544 w = dx;
544- uint dw = dx >> 1 ;
545+ uint32_t dw = dx >> 1 ;
545546 x1 += dw;
546547 x2 -= dw;
547548 assert (x1 == x2);
@@ -2380,7 +2381,7 @@ void io::Parser::addRoutingLayer(odb::dbTechLayer* layer)
23802381 }
23812382
23822383 frCollection<frSpacingTableTwRowType> rowVals;
2383- for (uint j = 0 ; j < layer->getTwoWidthsSpacingTableNumWidths (); ++j) {
2384+ for (uint32_t j = 0 ; j < layer->getTwoWidthsSpacingTableNumWidths (); ++j) {
23842385 frCoord width = layer->getTwoWidthsSpacingTableWidth (j);
23852386 frCoord prl = layer->getTwoWidthsSpacingTablePRL (j);
23862387 rowVals.push_back (frSpacingTableTwRowType (width, prl));
@@ -3996,7 +3997,7 @@ int io::TopLayerBTermHandler::countNetBTermsAboveMaxLayer(odb::dbNet* net)
39963997bool io::TopLayerBTermHandler::netHasStackedVias (odb::dbNet* net)
39973998{
39983999 int bterms_above_max_layer = countNetBTermsAboveMaxLayer (net);
3999- uint wire_cnt = 0 , via_cnt = 0 ;
4000+ uint32_t wire_cnt = 0 , via_cnt = 0 ;
40004001 net->getWireCount (wire_cnt, via_cnt);
40014002
40024003 if (wire_cnt != 0 || via_cnt == 0 ) {
0 commit comments