mirror of https://github.com/ipxe/ipxe.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 <mcb30@ipxe.org>pull/17/head
parent
c3d1e78697
commit
4f078801e9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue