From: normalperson@... Date: 2017-04-15T00:34:48+00:00 Subject: [ruby-core:80692] [Ruby trunk Bug#13439] [PATCH] fix RSTRUCT_LEN macro in public C API Issue #13439 has been reported by normalperson (Eric Wong). ---------------------------------------- Bug #13439: [PATCH] fix RSTRUCT_LEN macro in public C API https://bugs.ruby-lang.org/issues/13439 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: REQUIRED ---------------------------------------- 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: