mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (rb_data_object_alloc): check type of 1st argument.
[ruby-dev:21192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0b6cf4bea8
commit
364772613f
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 14 11:27:37 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_data_object_alloc): check type of 1st argument.
|
||||
[ruby-dev:21192]
|
||||
|
||||
Wed Aug 13 23:31:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal.c .h .html: Ambiguity of BigDecimal::limit removed.
|
||||
|
|
1
gc.c
1
gc.c
|
@ -342,6 +342,7 @@ rb_data_object_alloc(klass, datap, dmark, dfree)
|
|||
RUBY_DATA_FUNC dfree;
|
||||
{
|
||||
NEWOBJ(data, struct RData);
|
||||
Check_Type(klass, T_CLASS);
|
||||
OBJSETUP(data, klass, T_DATA);
|
||||
data->data = datap;
|
||||
data->dfree = dfree;
|
||||
|
|
Loading…
Reference in a new issue