ext/duckdb/result.c in duckdb-0.7.0 vs ext/duckdb/result.c in duckdb-0.7.1
- old
+ new
@@ -85,10 +85,10 @@
return INT2NUM(i32val);
}
static VALUE to_ruby_obj_bigint(duckdb_result *result, idx_t col_idx, idx_t row_idx) {
int64_t i64val = duckdb_value_int64(result, col_idx, row_idx);
- return rb_int2big(i64val);
+ return LL2NUM(i64val);
}
static VALUE to_ruby_obj_hugeint(duckdb_result *result, idx_t col_idx, idx_t row_idx) {
duckdb_hugeint hugeint = duckdb_value_hugeint(result, col_idx, row_idx);
return rb_ary_new3(2, ULL2NUM(hugeint.lower), LL2NUM(hugeint.upper));