Browse Source

[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>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
4f078801e9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/base16.c

+ 1
- 1
src/core/base16.c View File

129
 
129
 
130
 	DBG ( "Base16-decoded \"%s\" to:\n", encoded );
130
 	DBG ( "Base16-decoded \"%s\" to:\n", encoded );
131
 	DBG_HDA ( 0, raw, len );
131
 	DBG_HDA ( 0, raw, len );
132
-	assert ( len <= base16_decoded_max_len ( encoded ) );
132
+	assert ( len <= ( int ) base16_decoded_max_len ( encoded ) );
133
 
133
 
134
 	return len;
134
 	return len;
135
 }
135
 }

Loading…
Cancel
Save