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 | |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | include/ruby/io.h | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Thu Jul 24 15:55:02 2014 Naohisa Goto <ngotogenome@gmail.com> + + * 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] + Thu Jul 24 04:42:13 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * lib/benchmark.rb: split executable code into sample directory. 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; |