diff options
Diffstat (limited to 'fpga_interchange')
-rw-r--r-- | fpga_interchange/arch.h | 2 | ||||
-rw-r--r-- | fpga_interchange/fpga_interchange.cpp | 2 |
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); } |