From: Paul Eggert Date: Wed, 5 Jan 2022 19:37:26 +0000 (-0800) Subject: stack: pacify gcc -Wsign-compare X-Git-Tag: v1.0~2419 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=403968da56573bdbdcab79adabddcdc270e05cc9;p=gnulib.git stack: pacify gcc -Wsign-compare * lib/stack.h (_GL_STACK_TYPE): Use idx_t for size too. Suggested by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2022-01/msg00035.html --- diff --git a/ChangeLog b/ChangeLog index ad29aed978..609720a451 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2022-01-05 Paul Eggert + + stack: pacify gcc -Wsign-compare + * lib/stack.h (_GL_STACK_TYPE): Use idx_t for size too. + Suggested by Bruno Haible in: + https://lists.gnu.org/r/bug-gnulib/2022-01/msg00035.html + 2022-01-05 Bruno Haible Fix last commit. diff --git a/lib/stack.h b/lib/stack.h index 26fdbad770..b4c35535a7 100644 --- a/lib/stack.h +++ b/lib/stack.h @@ -77,7 +77,7 @@ typedef struct { GL_STACK_ELEMENT *base; - size_t size; + idx_t size; idx_t allocated; } _GL_STACK_TYPE;