Skip to content

Commit

Permalink
crc: fix bogus head
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova authored Jun 25, 2024
1 parent a6eac43 commit 1e6253d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/noun/jets/e/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ u3qe_crc32(u3_noun input_octs)
u3_atom head = u3h(input_octs);
u3_atom tail = u3t(input_octs);
c3_w tel_w = u3r_met(3, tail);
c3_w hed_w = u3r_met(3, head);
c3_w hed_w;
if ( c3n == u3r_safe_word(head, &hed_w) ) {
return u3m_bail(c3__fail);
}
c3_y* input;

if (c3y == u3a_is_cat(tail)) {
Expand Down

0 comments on commit 1e6253d

Please sign in to comment.