Skip to content

Commit 6a118b1

Browse files
[[ UninitialisedVars ]] Fix for Mac compilation
1 parent 846c3a5 commit 6a118b1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

engine/src/srvdebug.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,6 @@ void MCServerDebugGet(MCStringRef p_property, MCStringRef& r_result)
444444
else if (MCStringIsEqualToCString(p_property, "parse error", kMCCompareExact))
445445
MCperror -> copyasstringref(t_error);
446446
else if (MCStringIsEqualToCString(p_property, "files", kMCCompareExact))
447-
t_error = MCValueRetain(kMCEmptyString);
448-
else
449447
t_error = MCValueRetain(kMCEmptyString);
450448
else
451449
t_error = MCValueRetain(kMCEmptyString);

libgraphics/src/utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,8 @@ bool solve_simul_eq_2_vars(const MCGFloat p_eq_1[3], const MCGFloat p_eq_2[3], M
949949
a2 = -(b * p_eq_2[1] + p_eq_2[2]) / p_eq_2[0];
950950
if (a2 * p_eq_1[0] + b * p_eq_2[1] + p_eq_2[2] != 0)
951951
return false;
952+
953+
a = a2;
952954
}
953955
else
954956
return false;

libscript/src/script-builder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ void MCScriptEndHandlerInModule(MCScriptModuleBuilderRef self)
12281228
uindex_t t_encoded_target_address;
12291229
if (t_target_address >= 0)
12301230
t_encoded_target_address = t_target_address * 2;
1231-
else if (t_target_address < 0)
1231+
else
12321232
t_encoded_target_address = (-t_target_address) * 2 + 1;
12331233

12341234
t_operands[t_address_index] = (1 << 31) | t_encoded_target_address;

0 commit comments

Comments
 (0)