[ruby-cvs:65675] nobu:r58503 (trunk): node.h: sign-extend

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 29 11:58:53 JST 2017


nobu	2017-04-29 11:58:53 +0900 (Sat, 29 Apr 2017)

  New Revision: 58503

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

  Log:
    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]

  Modified files:
    trunk/node.h
    trunk/test/ruby/test_parse.rb


More information about the ruby-cvs mailing list