From 2e9b6096a68187830f8fbd427c79f05308f43160 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Sun, 10 Jan 2021 08:37:35 +0900 Subject: [PATCH] [ruby/bigdecimal] Fix type name https://github.com/ruby/bigdecimal/commit/2dad4d17b2 --- ext/bigdecimal/bigdecimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 0c79cc1f78..3432aa2ecb 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -205,7 +205,7 @@ static VALUE rb_rational_convert_to_BigDecimal(VALUE val, size_t digs, int raise static Real* GetVpValueWithPrec(VALUE v, long prec, int must) { - const size_t digs = prec < 0 ? SIZE_MAX : (long)prec; + const size_t digs = prec < 0 ? SIZE_MAX : (size_t)prec; Real *pv; switch(TYPE(v)) {