From a8e76deb69416ce80792b1a30de8583a633bdb75 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Thu, 13 Mar 2003 09:51:31 +0000 Subject: [PATCH] Fix align_target with a padding of 0 bytes --- BasiliskII/src/uae_cpu/compiler/compemu_support.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp b/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp index de36932c..7415979b 100644 --- a/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp +++ b/BasiliskII/src/uae_cpu/compiler/compemu_support.cpp @@ -4972,6 +4972,9 @@ void freescratch(void) static void align_target(uae_u32 a) { + if (!a) + return; + if (tune_nop_fillers) raw_emit_nop_filler(a - (((uae_u32)target) & (a - 1))); else {