From c21e23b3eb6fee48c2b2da384b2dd0cd2d4ad91f Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 18 Feb 2021 14:07:17 -0800 Subject: Fix sign mismatch. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fpga_interchange/arch.h | 2 +- fpga_interchange/fpga_interchange.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fpga_interchange') 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 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); } -- cgit v1.2.3