From a70f3923ab35f5924d5fc298922db25519f95fd4 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sun, 28 Feb 2021 19:51:05 +0100 Subject: [PATCH] Fix for Ruby 1.9.3 Following up to #605. --- ext/redcarpet/rc_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/redcarpet/rc_render.c b/ext/redcarpet/rc_render.c index e527c1c8..960a1ac8 100644 --- a/ext/redcarpet/rc_render.c +++ b/ext/redcarpet/rc_render.c @@ -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);