From c9fccff8aab9ab4fb5b841526619eb5bfe646dc6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 19 Feb 2000 05:31:32 +0000 Subject: Update. * string/bits/string2.h (strnlen): Add cast to prevent warning. --- string/bits/string2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string') diff --git a/string/bits/string2.h b/string/bits/string2.h index 9d31e16163..f8c32e3248 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -1025,7 +1025,7 @@ __STRING_INLINE size_t strnlen (__const char *__string, size_t __maxlen) { __const char *__end = (__const char *) memchr (__string, '\0', __maxlen); - return __end ? __end - __string : __maxlen; + return __end ? (size_t) (__end - __string) : __maxlen; } # endif #endif -- cgit v1.2.3