ruby-changes:61961
From: Sutou <ko1@a...>
Date: Sun, 28 Jun 2020 02:03:06 +0900 (JST)
Subject: [ruby-changes:61961] 9f740acaf9 (master): [ruby/fiddle] Use meaningful variable name
https://git.ruby-lang.org/ruby.git/commit/?id=9f740acaf9 From 9f740acaf960c0d8fa4b72050f057bc157db31ce Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Sat, 27 Jun 2020 07:11:19 +0900 Subject: [ruby/fiddle] Use meaningful variable name https://github.com/ruby/fiddle/commit/2cac24b7c8 diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c index 95648d3..bd6c9bd 100644 --- a/ext/fiddle/function.c +++ b/ext/fiddle/function.c @@ -31,9 +31,9 @@ VALUE cFiddleFunction; https://github.com/ruby/ruby/blob/trunk/ext/fiddle/function.c#L31 static void deallocate(void *p) { - ffi_cif *ptr = p; - if (ptr->arg_types) xfree(ptr->arg_types); - xfree(ptr); + ffi_cif *cif = p; + if (cif->arg_types) xfree(cif->arg_types); + xfree(cif); } static size_t -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/