diff --git a/src/generator/ArmV8Generator.cpp b/src/generator/ArmV8Generator.cpp index ec25010..b7f8271 100644 --- a/src/generator/ArmV8Generator.cpp +++ b/src/generator/ArmV8Generator.cpp @@ -117,7 +117,7 @@ std::vector ArmV8HandlerGenerator::intervenerBytes(uint64_t address) { a.b(delta); } // Delta can be encoded in 33 bits or less -> use adrp. - else if (delta >= -static_cast(0x100000FFF) && delta <= 0xFFFFFFFF) { + else if (delta >= -static_cast(0x100000000) && delta <= 0xFFFFFFFF) { a.adrp(X16, delta); a.add(X16, X16, callback & 0xFFF); a.br(X16);