[ruby-cvs:69582] nobu:r62401 (trunk): mjit.h: compare as pointer

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Feb 14 14:11:03 JST 2018


nobu	2018-02-14 14:11:02 +0900 (Wed, 14 Feb 2018)

  New Revision: 62401

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

  Log:
    mjit.h: compare as pointer
    
    * mjit.c (mjit_get_iseq_func), mjit.h (mjit_exec): do not compare
      a pointer as shorter type.  by loosing the precision, different
      values can result in "equal" wrongly.  enum type is an alias of
      `int`, and is often shorter than a pointer type nowadays.

  Modified files:
    trunk/mjit.c
    trunk/mjit.h


More information about the ruby-cvs mailing list