aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8f17d17..978669c 100644
--- a/main.c
+++ b/main.c
@@ -503,7 +503,7 @@ assemblejmp(const Jmp* j)
} else {
distance = target->wco - cursection->hdr.sh_size;
}
- if ((distance - 1) >= -128 && (distance - 1) <= 127) {
+ if ((distance - 1) >= -128 && (distance - 5) <= 127) {
jmpsize = 1;
} else {
jmpsize = 4;