From 8a9b9292de3f7a69bf9bde4f40034432b9cf9bff Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 2 Aug 1999 05:51:04 +0000 Subject: [PATCH] Change unsigned long cast of offset to size_t in ldap_build_filter() --- libraries/libldap/getfilter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/libldap/getfilter.c b/libraries/libldap/getfilter.c index e3cb60fd0a..b0a181a8ef 100644 --- a/libraries/libldap/getfilter.c +++ b/libraries/libldap/getfilter.c @@ -398,15 +398,14 @@ ldap_build_filter( *f++ = *p; } - if ( (unsigned long) (f - filtbuf) > buflen ) { + if ( (size_t) (f - filtbuf) > buflen ) { /* sanity check */ --f; break; } } - if ( suffix != NULL && ( - (unsigned long) ( f - filtbuf ) < buflen ) ) + if ( suffix != NULL && ( (size_t) (f - filtbuf) < buflen ) ) { strcpy( f, suffix ); } else { -- 2.39.5