make style

This commit is contained in:
merlokk committed 2023-12-12 01:11:10 +02:00
1 parent c533d3aba8
commit 2517e8b345
10 files changed
+65 -33

No files matched your search

+3 -3
View File
@@ -104,7 +104,7 @@ static char inv_b2s(char v, bool uppercase) {
'7', '6', '5', '4',
'3', '2', '1', '0'
};
uint8_t tmp = (tolower(v) - 'a' + 10);
if (isdigit(v)) {
tmp = (v - 0x30);
@@ -112,7 +112,7 @@ static char inv_b2s(char v, bool uppercase) {
if (uppercase)
return toupper(lut[tmp]);
else
else
return lut[tmp];
}
@@ -1254,7 +1254,7 @@ void str_inverse_bin(char *buf, size_t len) {
buf[i] = '0';
else if ( c == '0')
buf[i] = '1';
else
else
buf[i] = '.';
}
}