diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-08 17:13:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-08 17:13:26 +0000 |
commit | 8ad71433279fe8caa1e06038674c0559edfa1468 (patch) | |
tree | 80cb3afd208e0a2c5238df38bd76aaaa0bdc2c4f /include | |
parent | a00b29a67f669c53f7940fa7814a209f7ea47f7e (diff) | |
download | ruby-8ad71433279fe8caa1e06038674c0559edfa1468.tar.gz |
ruby.h: align
* include/ruby/ruby.h (RBasic): to be aligned on a VALUE size
boundary. [Bug #7647]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index d80eaed681..6debe428af 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -699,7 +699,11 @@ VALUE rb_newobj_of(VALUE, VALUE); struct RBasic { VALUE flags; VALUE klass; -}; +} +#ifdef __GNUC__ + __attribute__((aligned(sizeof(VALUE)))) +#endif +; #define ROBJECT_EMBED_LEN_MAX 3 struct RObject { |