Remove all octal references. - int2bit - Convert integer to funny way.
HTML git clone git://bitreich.org/int2bit git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/int2bit
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 9987cd151f8ed60a51102d217cee5462e587e692
DIR parent a03a0d642d21e0fb5a287447d223de7e3353eb36
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 24 Aug 2020 01:20:47 +0200
Remove all octal references.
Diffstat:
M int2bit.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
DIR diff --git a/int2bit.c b/int2bit.c
@@ -58,13 +58,7 @@ main(int argc, char *argv[])
if (hexprint) {
if (hasprint)
printf("|");
- if (rand() % 2) {
- /* octal */
- printf("0o%o", hexprint);
- } else {
- /* hexadecimal */
- printf("0x%x", hexprint);
- }
+ printf("0x%x", hexprint);
}
printf("\n");