vendor/rust/include/rust_checks.hh in gecoder-0.7.1 vs vendor/rust/include/rust_checks.hh in gecoder-0.8.0

- old
+ new

@@ -80,10 +80,11 @@ return isType(val, T_ARRAY); } static inline bool is_int(VALUE val) { - return isType(val, T_FIXNUM); + return isType(val, T_FIXNUM) || + (isType(val, T_BIGNUM) && NUM2INT(val) < INT_MAX); } static inline bool is_hash(VALUE val) { return isType(val, T_HASH);