--- libraries/liblber/decode.c 2002/01/06 05:10:05 1.81 +++ libraries/liblber/decode.c 2002/01/07 20:48:17 1.82 @@ -1,5 +1,5 @@ /* decode.c - ber input decoding routines */ -/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.80 2002/01/06 04:36:07 hyc Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.81 2002/01/06 05:10:05 hyc Exp $ */ /* * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -422,7 +422,7 @@ ber_get_stringbv( BerElement *ber, struc return LBER_DEFAULT; } - if ( ber_pvt_ber_remaining( ber ) < bv->bv_len ) { + if ( (ber_len_t) ber_pvt_ber_remaining( ber ) < bv->bv_len ) { return LBER_DEFAULT; }