From bc05fba87e061bd48d98397af044972bf962a818 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Thu, 12 Feb 2026 09:31:52 -0600 Subject: [PATCH] dreamcast2/runtime: calculate bss size in bytes --- dreamcast2/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dreamcast2/runtime.cpp b/dreamcast2/runtime.cpp index fcfbb83..a812257 100644 --- a/dreamcast2/runtime.cpp +++ b/dreamcast2/runtime.cpp @@ -41,7 +41,7 @@ void runtime_init() // clear BSS uint32_t * bss_start = &__bss_link_start; uint32_t * bss_end = &__bss_link_end; - int bss_length = bss_end - bss_start; + int bss_length = (uint8_t *)bss_end - (uint8_t *)bss_start; sh7091::store_queue_transfer::zeroize(bss_start, bss_length, 0); // call ctors