[前][次][番号順一覧][スレッド一覧]

ruby-changes:43698

From: ko1 <ko1@a...>
Date: Fri, 29 Jul 2016 10:51:16 +0900 (JST)
Subject: [ruby-changes:43698] ko1:r55771 (trunk): * vm_core.h (VM_LOCAL_P): should return an integer value.

ko1	2016-07-29 10:51:09 +0900 (Fri, 29 Jul 2016)

  New Revision: 55771

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55771

  Log:
    * vm_core.h (VM_LOCAL_P): should return an integer value.
      reported at
      http://d.hatena.ne.jp/nagachika/20160728/ruby_trunk_changes_55764_55770

  Modified files:
    trunk/ChangeLog
    trunk/vm_core.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55770)
+++ ChangeLog	(revision 55771)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 29 10:49:52 2016  Koichi Sasada  <ko1@a...>
+
+	* vm_core.h (VM_LOCAL_P): should return an integer value.
+	  reported at
+	  http://d.hatena.ne.jp/nagachika/20160728/ruby_trunk_changes_55764_55770
+
 Fri Jul 29 04:23:08 2016  Koichi Sasada  <ko1@a...>
 
 	* vm_core.h (VM_ENV_LOCAL_P): return truthy (0 or not) value.
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 55770)
+++ vm_core.h	(revision 55771)
@@ -1039,7 +1039,7 @@ VM_FRAME_TYPE(const rb_control_frame_t * https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1039
 static inline int
 VM_ENV_LOCAL_P(const VALUE *ep)
 {
-    return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL);
+    return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL) ? 1 : 0;
 }
 
 static inline const VALUE *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]