-
Notifications
You must be signed in to change notification settings - Fork 1
False-Positive Error "A jump to offset 0 found" #395
Copy link
Copy link
Open
Labels
priority:p3Low priorityLow priorityscope:compilertype:bugSomething isn't workingSomething isn't workingworkaround-availableUsers can fix for themselvesUsers can fix for themselves
Description
DEFINE MISSIONS 2
DEFINE MISSION {ID} 0 AT {LABEL} @Mission1
DEFINE MISSION {ID} 1 AT {LABEL} @Mission2
DEFINE EXTERNAL_SCRIPTS -1 // Use -1 to not build script.img, or 0 to build script.img with a dummy script
DEFINE UNKNOWN_EMPTY_SEGMENT 0
DEFINE UNKNOWN_THREADS_MEMORY 0
:Mission1
if 0@ == 0
then
terminate_this_script
// <------------ hidden jump here, which matches :Mission2 location
// compiler converts it to 0, but should calculated relative to :Mission1 instead
end
// terminate_this_script // <------- uncomment `terminate_this_script` to fix the error
:Mission2
terminate_this_script
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority:p3Low priorityLow priorityscope:compilertype:bugSomething isn't workingSomething isn't workingworkaround-availableUsers can fix for themselvesUsers can fix for themselves