diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-28 00:29:09 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-28 00:37:12 -0700 |
commit | a9b29ee4a0ffa4878d67eaf518dbeed098844b9e (patch) | |
tree | bbde8d6eae8b3676bb1d9f74d8ce0f6d7016c834 /lib/rawmemchr.c | |
parent | c1eb13b32676b288a3ab3826501caf7bcd376b7f (diff) | |
download | emacs-a9b29ee4a0ffa4878d67eaf518dbeed098844b9e.tar.gz emacs-a9b29ee4a0ffa4878d67eaf518dbeed098844b9e.tar.bz2 emacs-a9b29ee4a0ffa4878d67eaf518dbeed098844b9e.zip |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/rawmemchr.c')
-rw-r--r-- | lib/rawmemchr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rawmemchr.c b/lib/rawmemchr.c index ea68c1bfc6a..bdd7307de4b 100644 --- a/lib/rawmemchr.c +++ b/lib/rawmemchr.c @@ -23,10 +23,8 @@ #if !HAVE_RAWMEMCHR # include <limits.h> -# include <stdalign.h> # include <stdint.h> -# include "verify.h" /* Find the first occurrence of C in S. */ void * @@ -36,7 +34,7 @@ rawmemchr (const void *s, int c_in) typedef uintptr_t longword; /* If you change the "uintptr_t", you should change UINTPTR_WIDTH to match. This verifies that the type does not have padding bits. */ - verify (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword)); + static_assert (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword)); const unsigned char *char_ptr; unsigned char c = c_in; |