base64: Remove an invalid assertion
authorJon Griffiths <jon_p_griffiths@yahoo.com>
Wed, 24 Aug 2016 06:59:50 +0000 (18:59 +1200)
committerJon Griffiths <jon_p_griffiths@yahoo.com>
Mon, 29 Aug 2016 04:55:58 +0000 (16:55 +1200)
Unsigned types cannot be negative.

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
ccan/base64/base64.c

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