summaryrefslogtreecommitdiff
path: root/gl/lib/memrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/lib/memrchr.c')
-rw-r--r--gl/lib/memrchr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/lib/memrchr.c b/gl/lib/memrchr.c
index 99acfd9c..96022835 100644
--- a/gl/lib/memrchr.c
+++ b/gl/lib/memrchr.c
@@ -1,6 +1,6 @@
/* memrchr -- find the last occurrence of a byte in a memory block
- Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2018 Free Software
+ Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2019 Free Software
Foundation, Inc.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
@@ -68,7 +68,7 @@ __memrchr (void const *s, int c_in, size_t n)
if (*--char_ptr == c)
return (void *) char_ptr;
- longword_ptr = (const longword *) char_ptr;
+ longword_ptr = (const void *) char_ptr;
/* All these elucidatory comments refer to 4-byte longwords,
but the theory applies equally well to any size longwords. */