From f051ff875102aea30e747c9cb98a141a8933bf55 Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Sun, 2 Nov 2025 09:09:39 -0500 Subject: [PATCH] Fix crash, table_read was writing 64 bit data to an address size that was less than 64 bits --- plugins/4coder_multi_cursor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/4coder_multi_cursor.cpp b/plugins/4coder_multi_cursor.cpp index 71fffd0..16c2d2f 100644 --- a/plugins/4coder_multi_cursor.cpp +++ b/plugins/4coder_multi_cursor.cpp @@ -85,8 +85,9 @@ function MC_Command_Kind MCi_kind(Command_Map *map){ } function MC_Command_Kind MCi_kind(Custom_Command_Function *f){ - MC_Command_Kind kind = MC_Command_Kind(-1); - table_read(&mc_context.table, PtrAsInt(f), (u64*)&kind); + u64 kind_u64 = 0; + table_read(&mc_context.table, PtrAsInt(f), (u64*)&kind_u64); + MC_Command_Kind kind = (MC_Command_Kind)kind_u64; return kind; }