From: nagachika00@... Date: 2017-05-09T15:30:23+00:00 Subject: [ruby-core:81073] [Ruby trunk Bug#13439] [PATCH] fix RSTRUCT_LEN macro in public C API Issue #13439 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ruby_2_4 r58636 merged revision(s) 58359. ---------------------------------------- Bug #13439: [PATCH] fix RSTRUCT_LEN macro in public C API https://bugs.ruby-lang.org/issues/13439#change-64724 * Author: normalperson (Eric Wong) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE ---------------------------------------- rb_struct_size returns an Integer VALUE, so it must be converted to a `long` for compatibility with previous Ruby C API versions. * ext/-test-/struct/len.c: new * test/-ext-/struct/test_len.rb: new * include/ruby/ruby.h (RSTRUCT_LEN): use NUM2LONG ---Files-------------------------------- 0001-fix-RSTRUCT_LEN-macro-in-public-C-API.patch (2.16 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: