From 65f34aa653772c61bf5455259760a247492b2b42 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 1 Jul 2026 12:04:03 +0200 Subject: [PATCH] Fix floating point addresses in explore disassembly when terminal size is odd --- scripts/explore.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/explore.pl b/scripts/explore.pl index 4a16ed0..7b2725d 100644 --- a/scripts/explore.pl +++ b/scripts/explore.pl @@ -133,7 +133,7 @@ sub filter_marker_values { } # How much to disassemble around the address / how many lines to show -my $region_size = $cui->height() / 2 - 2; +my $region_size = int( $cui->height() / 2 ) - 2; my $asm_region_size = $region_size + 120; my %assembly_cache;