From 64be4019ad1b2371b5591004ac90fe031b5f97a7 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Tue, 7 Sep 2010 15:43:22 -0700 Subject: [PATCH] work around an rbx bug (it's going to be fixed in rbx soon anyhow) --- ext/mysql2/result.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mysql2/result.c b/ext/mysql2/result.c index 2cfaa5d..7375df5 100644 --- a/ext/mysql2/result.c +++ b/ext/mysql2/result.c @@ -461,10 +461,10 @@ void init_mysql2_result() { sym_application_timezone = ID2SYM(rb_intern("application_timezone")); sym_cache_rows = ID2SYM(rb_intern("cache_rows")); - rb_global_variable(&opt_decimal_zero); //never GC opt_decimal_zero = rb_str_new2("0.0"); - rb_global_variable(&opt_float_zero); + rb_global_variable(&opt_decimal_zero); //never GC opt_float_zero = rb_float_new((double)0); + rb_global_variable(&opt_float_zero); opt_time_year = INT2NUM(2000); opt_time_month = INT2NUM(1); opt_utc_offset = INT2NUM(0);