Project

General

Profile

Actions

Bug #13439

closed

[PATCH] fix RSTRUCT_LEN macro in public C API

Added by normalperson (Eric Wong) about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:80692]

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0