* 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
This commit is contained in:
ngoto 2014-07-24 07:03:38 +00:00
Родитель 92705750d3
Коммит 834eb1a8f6
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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;