From 675b41fab7711aee57efcd72a9880f8c0b5253ed Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Mon, 14 Oct 2024 00:03:18 -0300 Subject: fix function check --- src/tuberia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuberia.c b/src/tuberia.c index e6cd398..368a06d 100644 --- a/src/tuberia.c +++ b/src/tuberia.c @@ -361,7 +361,7 @@ void tube_free(tube **ctx) int tube_get_queued(const tube *ctx, int stage) { - if (ctx == NULL || stage < 0 || stage >= ctx->nstages) { + if (ctx == NULL || stage < 0 || stage >= ctx->nitcs) { return -1; } return itc_get_queued(ctx->itcs[stage]); -- cgit v1.2.3