]> Savannah Git Hosting - gnulib.git/commitdiff
stack: pacify gcc -Wsign-compare
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Jan 2022 19:37:26 +0000 (11:37 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Jan 2022 19:39:04 +0000 (11:39 -0800)
* 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

ChangeLog
lib/stack.h

index ad29aed978a9d2874eb5182ab59e3690c78eb914..609720a451ec85105a8603f0c11770291a8c3f09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-01-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <bruno@clisp.org>
 
        Fix last commit.
index 26fdbad770a9765d51dfce9852a82513a97d1446..b4c35535a7dd5cdba2e8ba5de512e71439a8e25b 100644 (file)
@@ -77,7 +77,7 @@
 typedef struct
 {
   GL_STACK_ELEMENT *base;
-  size_t size;
+  idx_t size;
   idx_t allocated;
 } _GL_STACK_TYPE;