diff --git a/array.c b/array.c index ac231a295a..f4732d9acb 100644 --- a/array.c +++ b/array.c @@ -45,10 +45,10 @@ memfill(register VALUE *mem, register long size, register VALUE val) # define ARY_SHARED_P(ary) \ (assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \ - FL_TEST(ary,ELTS_SHARED)) + FL_TEST(ary,ELTS_SHARED)!=0) # define ARY_EMBED_P(ary) \ (assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \ - FL_TEST(ary, RARRAY_EMBED_FLAG)) + FL_TEST(ary, RARRAY_EMBED_FLAG)!=0) #define ARY_HEAP_PTR(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.ptr) #define ARY_HEAP_LEN(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.len) @@ -192,7 +192,7 @@ static void rb_ary_decrement_share(VALUE shared) { if (shared) { - int num = ARY_SHARED_NUM(shared) - 1; + long num = ARY_SHARED_NUM(shared) - 1; if (num == 0) { rb_ary_free(shared); rb_gc_force_recycle(shared); @@ -222,7 +222,7 @@ rb_ary_unshare_safe(VALUE ary) static VALUE rb_ary_increment_share(VALUE shared) { - int num = ARY_SHARED_NUM(shared); + long num = ARY_SHARED_NUM(shared); if (num >= 0) { ARY_SET_SHARED_NUM(shared, num + 1); } diff --git a/version.h b/version.h index 6306084e16..25019f468b 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2009-05-01" +#define RUBY_RELEASE_DATE "2009-05-02" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 1 +#define RUBY_RELEASE_DAY 2 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];