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

ruby-changes:43721

From: nobu <ko1@a...>
Date: Tue, 2 Aug 2016 10:47:25 +0900 (JST)
Subject: [ruby-changes:43721] nobu:r55794 (trunk): vm_core.h: suppress warnings

nobu	2016-08-02 10:47:21 +0900 (Tue, 02 Aug 2016)

  New Revision: 55794

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

  Log:
    vm_core.h: suppress warnings
    
    * vm_core.h (VM_ENV_FLAGS, VM_FRAME_TYPE): return unsigned to
      suppress sign-compare warnings.

  Modified files:
    trunk/vm_core.h
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 55793)
+++ vm_core.h	(revision 55794)
@@ -1016,7 +1016,7 @@ VM_ENV_FLAGS_UNSET(const VALUE *ep, VALU https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1016
     VM_FORCE_WRITE_SPECIAL_CONST(&ep[VM_ENV_DATA_INDEX_FLAGS], flags & ~flag);
 }
 
-static inline long
+static inline unsigned long
 VM_ENV_FLAGS(const VALUE *ep, long flag)
 {
     VALUE flags = ep[VM_ENV_DATA_INDEX_FLAGS];
@@ -1024,7 +1024,7 @@ VM_ENV_FLAGS(const VALUE *ep, long flag) https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1024
     return flags & flag;
 }
 
-static inline long
+static inline unsigned long
 VM_FRAME_TYPE(const rb_control_frame_t *cfp)
 {
     return VM_ENV_FLAGS(cfp->ep, VM_FRAME_MAGIC_MASK);

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

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