Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sorry. I made wrong tags.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/tags/v1_8_5_67@12997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 61e100230261592d8c25a7fcebd144efdc222966 2 parents be9a257 + d1c453f
@shyouhei shyouhei authored
Showing with 4 additions and 10 deletions.
  1. +0 −5 ChangeLog
  2. +3 −4 struct.c
  3. +1 −1  version.h
View
5 ChangeLog
@@ -1,8 +1,3 @@
-Thu Aug 16 04:53:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * struct.c (rb_struct_init_copy): disallow changing the size.
- [ruby-dev:31168]
-
Thu Aug 16 04:52:11 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* random.c: documentation fix. srand(0) initializes PRNG with '0',
View
7 struct.c
@@ -252,7 +252,7 @@ rb_struct_define(name, va_alist)
ary = rb_ary_new();
va_init_list(ar, name);
- while ((mem = va_arg(ar, char*)) != 0) {
+ while (mem = va_arg(ar, char*)) {
ID slot = rb_intern(mem);
rb_ary_push(ary, ID2SYM(slot));
}
@@ -557,9 +557,8 @@ rb_struct_init_copy(copy, s)
if (!rb_obj_is_instance_of(s, rb_obj_class(copy))) {
rb_raise(rb_eTypeError, "wrong argument class");
}
- if (RSTRUCT(copy)->len != RSTRUCT(s)->len) {
- rb_raise(rb_eTypeError, "struct size mismatch");
- }
+ RSTRUCT(copy)->ptr = ALLOC_N(VALUE, RSTRUCT(s)->len);
+ RSTRUCT(copy)->len = RSTRUCT(s)->len;
MEMCPY(RSTRUCT(copy)->ptr, RSTRUCT(s)->ptr, VALUE, RSTRUCT(copy)->len);
return copy;
View
2  version.h
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2007-08-16"
#define RUBY_VERSION_CODE 185
#define RUBY_RELEASE_CODE 20070816
-#define RUBY_PATCHLEVEL 68
+#define RUBY_PATCHLEVEL 67
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Please sign in to comment.
Something went wrong with that request. Please try again.