Skip to content

Commit

Permalink
Fix for Ruby 1.9.3
Browse files Browse the repository at this point in the history
Following up to #605.
  • Loading branch information
robin850 committed Feb 28, 2021
1 parent 27dfb2a commit a70f392
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 a70f392

Please sign in to comment.