mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
internal.h: fix r55831
* internal.h (RBASIC_CLEAR_CLASS): fix compile error and size to fill. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d81e5593b7
commit
6a6a4126d4
1 changed files with 1 additions and 1 deletions
|
@ -1250,7 +1250,7 @@ struct RBasicRaw {
|
|||
VALUE klass;
|
||||
};
|
||||
|
||||
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(((struct RBasicRaw *)
|
||||
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE))
|
||||
#define RBASIC_SET_CLASS_RAW(obj, cls) memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE))
|
||||
#define RBASIC_SET_CLASS(obj, cls) do { \
|
||||
VALUE _obj_ = (obj); \
|
||||
|
|
Loading…
Reference in a new issue