Skip to content

Commit

Permalink
Merge pull request #706 from vmg/fix-605
Browse files Browse the repository at this point in the history
Follow-up to #605
  • Loading branch information
robin850 authored Feb 28, 2021
2 parents 27dfb2a + a70f392 commit 5fa427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/redcarpet/rc_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ rndr_tablecell(struct buf *ob, const struct buf *text, int align, void *opaque)

/* For backward compatibility, let's ensure that the erasure with
only two parameters is still supported. */
if (FIX2SHORT(rb_callback_arity) == 3) {
if (FIX2INT(rb_callback_arity) == 3) {
BLOCK_CALLBACK("table_cell", 3, buf2str(text), rb_align, rb_header);
} else {
BLOCK_CALLBACK("table_cell", 2, buf2str(text), rb_align);
Expand Down

0 comments on commit 5fa427d

Please sign in to comment.