aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'generic/viaduct_helpers.cc')
-rw-r--r--generic/viaduct_helpers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/viaduct_helpers.cc b/generic/viaduct_helpers.cc
index 153d2a0e..53df625c 100644
--- a/generic/viaduct_helpers.cc
+++ b/generic/viaduct_helpers.cc
@@ -29,15 +29,15 @@ void ViaductHelpers::resize_ids(int x, int y, int z)
{
NPNR_ASSERT(x >= 0 && y >= 0 && x <= 20000 && y <= 20000 && z <= 1000);
while (int(x_ids.size()) <= x) {
- IdString next = ctx->id(stringf("X%d", int(x_ids.size())));
+ IdString next = ctx->idf("X%d", int(x_ids.size()));
x_ids.push_back(next);
}
while (int(y_ids.size()) <= y) {
- IdString next = ctx->id(stringf("Y%d", int(y_ids.size())));
+ IdString next = ctx->idf("Y%d", int(y_ids.size()));
y_ids.push_back(next);
}
while (int(z_ids.size()) <= y) {
- IdString next = ctx->id(stringf("Z%d", int(z_ids.size())));
+ IdString next = ctx->idf("Z%d", int(z_ids.size()));
z_ids.push_back(next);
}
}