From: Michael Brown Date: Tue, 12 Nov 2013 22:16:24 +0000 (+0000) Subject: [base16] Fix comparison of signed and unsigned integers X-Git-Tag: v1.20.1~1367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f078801e9b2ad22b6dbd5e745ee9504b50186ac;p=thirdparty%2Fipxe.git [base16] Fix comparison of signed and unsigned integers gcc 4.7.1 fails to report this erroneous comparison unless assertions are enabled. Signed-off-by: Michael Brown --- diff --git a/src/core/base16.c b/src/core/base16.c index 2544bd7fb..bf9cc21bb 100644 --- a/src/core/base16.c +++ b/src/core/base16.c @@ -129,7 +129,7 @@ int base16_decode ( const char *encoded, uint8_t *raw ) { DBG ( "Base16-decoded \"%s\" to:\n", encoded ); DBG_HDA ( 0, raw, len ); - assert ( len <= base16_decoded_max_len ( encoded ) ); + assert ( len <= ( int ) base16_decoded_max_len ( encoded ) ); return len; }