Explorar el Código

Simplify hexchar

rexim hace 3 años
padre
commit
280f577209
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test.c

+ 1 - 1
test.c

@@ -39,7 +39,7 @@
 char hexchar(uint8_t x)
 {
     if (x < 10) return x + '0';
-    if (10 <= x && x < 16) return x - 10 + 'A';
+    if (x < 16) return x - 10 + 'A';
     UNREACHABLE("hexchar");
 }