aboutsummaryrefslogtreecommitdiffstats
path: root/common/archcheck.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-24 15:45:49 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-24 15:45:49 +0200
commite200c281d988b30ee39bd4d5934d6e6b2d3d4b6d (patch)
tree2152c97593c2ca71d11658c52e5c6d232b752fec /common/archcheck.cc
parentc0c8dc760290cb78611f3764219a7604f6f73c44 (diff)
downloadnextpnr-e200c281d988b30ee39bd4d5934d6e6b2d3d4b6d.tar.gz
nextpnr-e200c281d988b30ee39bd4d5934d6e6b2d3d4b6d.tar.bz2
nextpnr-e200c281d988b30ee39bd4d5934d6e6b2d3d4b6d.zip
common: Remove use of deprecated APIs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/archcheck.cc')
-rw-r--r--common/archcheck.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/archcheck.cc b/common/archcheck.cc
index 5c4ef26c..5059066d 100644
--- a/common/archcheck.cc
+++ b/common/archcheck.cc
@@ -17,8 +17,8 @@
*
*/
-#include "nextpnr.h"
#include "log.h"
+#include "nextpnr.h"
#if 0
#define dbg(...) log(__VA_ARGS__)
@@ -84,8 +84,7 @@ void archcheck_locs(const Context *ctx)
log_info("Checking all locations..\n");
for (int x = 0; x < ctx->getGridDimX(); x++)
- for (int y = 0; y < ctx->getGridDimY(); y++)
- {
+ for (int y = 0; y < ctx->getGridDimY(); y++) {
dbg("> %d %d\n", x, y);
std::unordered_set<int> usedz;