Skip to content

Commit

Permalink
Add some parens to make the author's intentions clear
Browse files Browse the repository at this point in the history
The && was indeed intended and the expression is correct.
Sorry jnthn
  • Loading branch information
niner committed Nov 30, 2019
1 parent 795b320 commit 631d361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moar.c
Expand Up @@ -700,7 +700,7 @@ void MVM_vm_event_subscription_configure(MVMThreadContext *tc, MVMObject *queue,
MVM_exception_throw_adhoc(tc, "vmeventsubscribe requires a concrete configuration hash (got a %s type object)", MVM_6model_get_debug_name(tc, config));
}

if (REPR(queue)->ID != MVM_REPR_ID_ConcBlockingQueue && !MVM_is_null(tc, queue) || !IS_CONCRETE(queue)) {
if ((REPR(queue)->ID != MVM_REPR_ID_ConcBlockingQueue && !MVM_is_null(tc, queue)) || !IS_CONCRETE(queue)) {
MVM_exception_throw_adhoc(tc, "vmeventsubscribe requires a concrete ConcBlockingQueue (got a %s)", MVM_6model_get_debug_name(tc, queue));
}

Expand Down

0 comments on commit 631d361

Please sign in to comment.