aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-18 14:07:17 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-18 14:08:22 -0800
commitc21e23b3eb6fee48c2b2da384b2dd0cd2d4ad91f (patch)
tree7385a3d741e2eca2f6aea70eb41801893cb16657 /fpga_interchange
parente138a6c56da1df7090f9494d83851406de0f1719 (diff)
downloadnextpnr-c21e23b3eb6fee48c2b2da384b2dd0cd2d4ad91f.tar.gz
nextpnr-c21e23b3eb6fee48c2b2da384b2dd0cd2d4ad91f.tar.bz2
nextpnr-c21e23b3eb6fee48c2b2da384b2dd0cd2d4ad91f.zip
Fix sign mismatch.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/arch.h2
-rw-r--r--fpga_interchange/fpga_interchange.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/fpga_interchange/arch.h b/fpga_interchange/arch.h
index fb9a36b9..76497d6d 100644
--- a/fpga_interchange/arch.h
+++ b/fpga_interchange/arch.h
@@ -856,7 +856,7 @@ struct Arch : ArchAPI<ArchRanges>
result.first->second.tags.resize(default_tags.size());
result.first->second.sites.reserve(tile_type.number_sites);
- for (size_t i = 0; i < tile_type.number_sites; ++i) {
+ for (size_t i = 0; i < (size_t)tile_type.number_sites; ++i) {
result.first->second.sites.push_back(SiteRouter(i));
}
}
diff --git a/fpga_interchange/fpga_interchange.cpp b/fpga_interchange/fpga_interchange.cpp
index e5a8fc38..566524b6 100644
--- a/fpga_interchange/fpga_interchange.cpp
+++ b/fpga_interchange/fpga_interchange.cpp
@@ -37,7 +37,7 @@ static void write_message(::capnp::MallocMessageBuilder & message, const std::st
gzFile file = gzopen(filename.c_str(), "w");
NPNR_ASSERT(file != Z_NULL);
- NPNR_ASSERT(gzwrite(file, &bytes[0], bytes.size()) == bytes.size());
+ NPNR_ASSERT(gzwrite(file, &bytes[0], bytes.size()) == (int)bytes.size());
NPNR_ASSERT(gzclose(file) == Z_OK);
}