Skip to content

Commit

Permalink
Use nz rather than ne when testing for NULL
Browse files Browse the repository at this point in the history
They are aliased to the same flag, so this is a nitpick;
however nz implies that we want to test for non-zeroness
and ne implies that we want to test for equality.
  • Loading branch information
bdw committed Aug 24, 2014
1 parent 7938703 commit 74883b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jit/emit_x64.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ void MVM_jit_emit_primitive(MVMThreadContext *tc, MVMJitGraph *jg,
| mov TMP1, aword WORK[obj];
| mov TMP2, MVMITER:TMP1->body.hash_state.next;
| test TMP2, TMP2;
| setne TMP2b;
| setnz TMP2b;
| movzx TMP2, TMP2b;
| mov aword WORK[dst], TMP2;
break;
Expand Down

0 comments on commit 74883b4

Please sign in to comment.