From 3966846e39758f3b3487650f8bf19722db0c6d6c Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Tue, 31 Dec 2024 16:37:39 -0500 Subject: [PATCH] Fix compiler errors caused by x11 defines and implicit casts --- librecomp/src/mods.cpp | 4 ++-- ultramodern/include/ultramodern/renderer_context.hpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/librecomp/src/mods.cpp b/librecomp/src/mods.cpp index 2b1a9b5..acc458a 100644 --- a/librecomp/src/mods.cpp +++ b/librecomp/src/mods.cpp @@ -998,7 +998,7 @@ recomp::mods::CodeModLoadError recomp::mods::ModContext::load_mod_code(uint8_t* std::string cur_error_param; CodeModLoadError cur_error; ModCodeHandleInputs handle_inputs{ - .base_event_index = num_events, + .base_event_index = static_cast(num_events), .recomp_trigger_event = recomp_trigger_event, .get_function = get_function, .cop0_status_write = cop0_status_write, @@ -1007,7 +1007,7 @@ recomp::mods::CodeModLoadError recomp::mods::ModContext::load_mod_code(uint8_t* .do_break = do_break, .reference_section_addresses = section_addresses, }; - + // Allocate the event indices used by the mod. num_events += mod.num_events(); diff --git a/ultramodern/include/ultramodern/renderer_context.hpp b/ultramodern/include/ultramodern/renderer_context.hpp index 21f377e..8d13d75 100644 --- a/ultramodern/include/ultramodern/renderer_context.hpp +++ b/ultramodern/include/ultramodern/renderer_context.hpp @@ -18,6 +18,8 @@ # undef LockMask # undef Always # undef Success +# undef False +# undef True #endif #include "ultra64.h"