Skip to content

Commit

Permalink
Implement pv1d vs pv1u ##print
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Oct 12, 2023
1 parent 7b05911 commit b3b7dfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libr/core/cmd_print.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3596,7 +3596,11 @@ static void cmd_print_pv(RCore *core, const char *input, bool useBytes) {
switch (n) {
case 1:
v = r_read_ble8 (block);
r_cons_printf ("%" PFMT64d "\n", v);
if (*input == 'u') {
r_cons_printf ("%u\n", (unsigned char)v);
} else {
r_cons_printf ("%d\n", (signed char)v);
}
block += 1;
break;
case 2:
Expand Down

0 comments on commit b3b7dfe

Please sign in to comment.