Browse Source

base64: Remove an invalid assertion

Unsigned types cannot be negative.

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
Jon Griffiths 9 years ago
parent
commit
8f116a81b3
1 changed files with 0 additions and 1 deletions
  1. 0 1
      ccan/base64/base64.c

+ 0 - 1
ccan/base64/base64.c

@@ -14,7 +14,6 @@
  */
  */
 static char sixbit_to_b64(const base64_maps_t *maps, const uint8_t sixbit)
 static char sixbit_to_b64(const base64_maps_t *maps, const uint8_t sixbit)
 {
 {
-	assert(sixbit >= 0);
 	assert(sixbit <= 63);
 	assert(sixbit <= 63);
 
 
 	return maps->encode_map[(unsigned char)sixbit];
 	return maps->encode_map[(unsigned char)sixbit];