From 594644e7557f384b6667c76511a6c0f532a80607 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 9 Feb 2018 16:38:53 +0100 Subject: Fix compiler warning (comparison between signed and unsigned int) in icetime Signed-off-by: Clifford Wolf --- icetime/icetime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 2614539..cdec43e 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -1564,7 +1564,7 @@ void make_seg_cell(int net, const net_segment_t &seg) if (sscanf(seg.name.c_str(), "lutff_%d/in_%d", &a, &b) == 2) { //"logic" wires at the side of the device are actually IP or DSP - if(device_type == "up5k" && ((seg.x == 0) || (seg.x == config_tile_type.size() - 1))) { + if(device_type == "up5k" && ((seg.x == 0) || (seg.x == int(config_tile_type.size()) - 1))) { std::string primnet; auto cell = make_dsp_ip(seg.x, seg.y, seg.name, primnet); netlist_cell_ports[cell][primnet] = net_name(net); -- cgit v1.2.3