Skip to content

Commit f394af8

Browse files
committed
ccan: remove an impossible-to-reach abort()
1 parent ed4d512 commit f394af8

File tree

1 file changed

+1
-3
lines changed
  • src/ccan/ccan/str/hex

1 file changed

+1
-3
lines changed

src/ccan/ccan/str/hex/hex.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ static char hexchar(unsigned int val)
4545
{
4646
if (val < 10)
4747
return '0' + val;
48-
if (val < 16)
49-
return 'a' + val - 10;
50-
abort();
48+
return 'a' + val - 10;
5149
}
5250

5351
bool hex_encode(const void *buf, size_t bufsize, char *dest, size_t destsize)

0 commit comments

Comments
 (0)