summaryrefslogtreecommitdiffstats
path: root/src/core/base16.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-12 23:16:24 +0100
committerMichael Brown2013-11-14 13:35:43 +0100
commit4f078801e9b2ad22b6dbd5e745ee9504b50186ac (patch)
tree49776c7e9372b2d23e0a63574502ab4db9ae4e3b /src/core/base16.c
parent[pxe] Ensure cached DHCPACK is retrieved prior to network device creation (diff)
downloadipxe-4f078801e9b2ad22b6dbd5e745ee9504b50186ac.tar.gz
ipxe-4f078801e9b2ad22b6dbd5e745ee9504b50186ac.tar.xz
ipxe-4f078801e9b2ad22b6dbd5e745ee9504b50186ac.zip
[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>
Diffstat (limited to 'src/core/base16.c')
-rw-r--r--src/core/base16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/base16.c b/src/core/base16.c
index 2544bd7f..bf9cc21b 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;
}