Skip to content

Commit 50aeae5

Browse files
committed
com.livecode.bitwise: Remove useless cast.
1 parent cc09e54 commit 50aeae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libscript/src/module-bitwise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" MC_DLLEXPORT void MCBitwiseEvalBitwiseXor(integer_t p_left, integer_t
3333

3434
extern "C" MC_DLLEXPORT void MCBitwiseEvalBitwiseNot(integer_t p_operand, integer_t& r_output)
3535
{
36-
r_output = ~((int32_t)p_operand);
36+
r_output = ~p_operand;
3737
}
3838

3939
extern "C" MC_DLLEXPORT void MCBitwiseEvalBitwiseShift(integer_t p_operand, bool p_is_right, uinteger_t p_shift, integer_t& r_output)

0 commit comments

Comments
 (0)