aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tuberia.c2
1 files changed, 1 insertions, 1 deletions
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]);