Skip to content

Commit

Permalink
ptrig: fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Oct 31, 2021
1 parent 1ca4276 commit 5c76ba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std_blocks/trig/ptrig.c
Expand Up @@ -235,9 +235,9 @@ int ptrig_handle_config(ubx_block_t *b)
assert(len >= 0);

if (len > 0) {
if (*stacksize < PTHREAD_STACK_MIN) {
ubx_err(b, "stacksize (%zd) less than PTHREAD_STACK_MIN (%d)",
*stacksize, PTHREAD_STACK_MIN);
if (*stacksize < (size_t) PTHREAD_STACK_MIN) {
ubx_err(b, "stacksize (%zd) less than PTHREAD_STACK_MIN (%zd)",
*stacksize, (size_t) PTHREAD_STACK_MIN);
goto out;
}

Expand Down

0 comments on commit 5c76ba6

Please sign in to comment.