[前][次][番号順一覧][スレッド一覧]

ruby-changes:43760

From: nobu <ko1@a...>
Date: Mon, 8 Aug 2016 14:11:56 +0900 (JST)
Subject: [ruby-changes:43760] nobu:r55833 (trunk): internal.h: fix r55831

nobu	2016-08-08 14:11:51 +0900 (Mon, 08 Aug 2016)

  New Revision: 55833

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55833

  Log:
    internal.h: fix r55831
    
    * internal.h (RBASIC_CLEAR_CLASS): fix compile error and size to
      fill.

  Modified files:
    trunk/internal.h
Index: internal.h
===================================================================
--- internal.h	(revision 55832)
+++ internal.h	(revision 55833)
@@ -1250,7 +1250,7 @@ struct RBasicRaw { https://github.com/ruby/ruby/blob/trunk/internal.h#L1250
     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); \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]