Skip to content

Commit a70f392

Browse files
committed
Fix for Ruby 1.9.3
Following up to #605.
1 parent 27dfb2a commit a70f392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/redcarpet/rc_render.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ rndr_tablecell(struct buf *ob, const struct buf *text, int align, void *opaque)
148148

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

0 commit comments

Comments
 (0)