OpenRAM/docker/mrg.patch

23 lines
581 B
Diff
Raw Normal View History

2022-06-13 23:13:35 +02:00
diff --git a/commands/CmdLQ.c b/commands/CmdLQ.c
index ca70086..ee3242c 100644
--- a/commands/CmdLQ.c
+++ b/commands/CmdLQ.c
@@ -1745,7 +1745,7 @@ CmdPort(w, cmd)
if (sl->lab_flags & PORT_DIR_MASK)
{
idx = (int)sl->lab_port;
- if (idx < i) i = idx;
+ if (idx < i || i == -1) i = idx;
}
}
#ifdef MAGIC_WRAPPER
@@ -1764,7 +1764,7 @@ CmdPort(w, cmd)
{
idx = (int)sl->lab_port;
if (idx > refidx)
- if (idx < i) i = idx;
+ if (idx < i || i == -1) i = idx;
}
}
#ifdef MAGIC_WRAPPER