summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-10 08:37:35 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-10 08:40:05 +0900
commit2e9b6096a68187830f8fbd427c79f05308f43160 (patch)
tree8b347c466279b86f59f918cc2c90e9b1ade04b4e /ext/bigdecimal
parent8b53cbaf5e7f1a0a7eef905c449981d8895f9711 (diff)
[ruby/bigdecimal] Fix type name
https://github.com/ruby/bigdecimal/commit/2dad4d17b2
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 0c79cc1..3432aa2 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)) {