From 8c51861578ef2e3090a3ec6a66cdc6f13cac5f48 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 1 Aug 2022 05:37:39 +0200 Subject: [PATCH] Fix consola --- libr/asm/arch/riscv/riscv.h | 2 +- libr/core/panels.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libr/asm/arch/riscv/riscv.h b/libr/asm/arch/riscv/riscv.h index 3cad516cab..f173d9ad3d 100644 --- a/libr/asm/arch/riscv/riscv.h +++ b/libr/asm/arch/riscv/riscv.h @@ -342,7 +342,7 @@ extern const char * const riscv_fpr_names_abi[NFPR]; extern struct riscv_opcode *riscv_opcodes; //extern const struct riscv_opcode riscv_opcodes[]; #ifdef _MSC_VER -extern int bfd_riscv_num_opcodes; +extern const int bfd_riscv_num_opcodes; #endif #endif #define NUMOPCODES bfd_riscv_num_opcodes diff --git a/libr/core/panels.c b/libr/core/panels.c index 9a583280c7..9b7742cb90 100644 --- a/libr/core/panels.c +++ b/libr/core/panels.c @@ -5224,6 +5224,7 @@ static void __init_menu_screen_settings_layout(void *_core, const char *parent) static int __calculator_cb(void *user) { RCore *core = (RCore *)user; + r_cons_clear (); for (;;) { char *s = __show_status_input (core, "> "); if (!s || !*s) {