Project

General

Profile

« Previous | Next » 

Revision 16acdaef

Added by nagachika (Tomoyuki Chikanaga) almost 8 years ago

merge revision(s) 58503: [Backport #13523]

    node.h: sign-extend

    * node.h (nd_line): should sign-extend.  shifting `VALUE` extends
      with zero bits if `sizeof(VALUE)` equals to `sizeof(int)`.  the
      zero bits are truncated if `sizeof(VALUE)` is bigger enough.
      [ruby-core:80920] [Bug #13523]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e