diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-14 00:03:18 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-14 00:03:18 -0300 |
commit | 675b41fab7711aee57efcd72a9880f8c0b5253ed (patch) | |
tree | 17082b5d5b72ddb3b456269277624343f0862e41 | |
parent | 4a4e956c26d2f73534e504c36e2ca6a2617644b8 (diff) | |
download | libtuberia-675b41fab7711aee57efcd72a9880f8c0b5253ed.tar.gz |
fix function check
-rw-r--r-- | src/tuberia.c | 2 |
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]); |