We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a0cefb commit e94c098Copy full SHA for e94c098
libscript/src/script-builder.cpp
@@ -1134,7 +1134,7 @@ void MCScriptEndHandlerInModule(MCScriptModuleBuilderRef self)
1134
t_target_address = self -> instructions[self -> labels[t_operands[t_address_index] - 1] . instruction] . address - t_address;
1135
1136
uindex_t t_encoded_target_address;
1137
- if (t_target_address > 0)
+ if (t_target_address >= 0)
1138
t_encoded_target_address = t_target_address * 2;
1139
else if (t_target_address < 0)
1140
t_encoded_target_address = (-t_target_address) * 2 + 1;
0 commit comments