Skip to content

Commit

Permalink
Cast to ut64
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored Nov 12, 2024
1 parent b4c65e5 commit 867c7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/core/cmd/cmd_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -3262,7 +3262,7 @@ static bool core_disassembly(RzCore *core, int n_bytes, int n_instrs, RzCmdState
}

RZ_IPI RzCmdStatus rz_cmd_disassembly_n_bytes_handler(RzCore *core, int argc, const char **argv, RzCmdStateOutput *state) {
ut64 n_bytes = argc > 1 ? (int)rz_num_math(core->num, argv[1]) : core->blocksize;
ut64 n_bytes = argc > 1 ? (ut64)rz_num_math(core->num, argv[1]) : core->blocksize;
if (n_bytes == 0) {
RZ_LOG_ERROR("The argument cannot be zero\n");
return RZ_CMD_STATUS_ERROR;
Expand Down

0 comments on commit 867c7c6

Please sign in to comment.