diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-24 07:03:38 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-24 07:03:38 +0000 |
commit | 834eb1a8f6edd9d5d8c3d283032faa988eafea16 (patch) | |
tree | b8a5deca67e569807c9ceda6770812f0e4962446 /include | |
parent | 92705750d3ebd77bea806e3377eacb010eaac0c8 (diff) | |
download | ruby-834eb1a8f6edd9d5d8c3d283032faa988eafea16.tar.gz |
* include/ruby/io.h (struct rb_io_buffer_t): PACKED_STRUCT should not
be used for platform-specific optimization. PACKED_STRUCT_UNALIGNED
should be used. [ruby-core:63988] [Bug #10088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index b230a61b40..cc3f5e60b1 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -51,7 +51,7 @@ extern "C" { RUBY_SYMBOL_EXPORT_BEGIN -PACKED_STRUCT(struct rb_io_buffer_t { +PACKED_STRUCT_UNALIGNED(struct rb_io_buffer_t { char *ptr; /* off + len <= capa */ int off; int len; |