ruby-changes:19047
From: naruse <ko1@a...>
Date: Thu, 10 Mar 2011 17:08:08 +0900 (JST)
Subject: [ruby-changes:19047] Ruby:r31085 (trunk): * parse.y (parser_encode_length): fix typo: the length of
naruse 2011-03-10 17:07:56 +0900 (Thu, 10 Mar 2011) New Revision: 31085 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31085 Log: * parse.y (parser_encode_length): fix typo: the length of "-dos" and "-mac" is not 5 but 4. patched by James M. Lawrence [ruby-core:35476] fixes #4489 Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 31084) +++ ChangeLog (revision 31085) @@ -1,3 +1,8 @@ +Thu Mar 10 16:00:22 2011 NARUSE, Yui <naruse@r...> + + * parse.y (parser_encode_length): fix typo: the length of + "-dos" and "-mac" is not 5 but 4. + patched by James M. Lawrence [ruby-core:35476] fixes #4489 Thu Mar 10 10:52:01 2011 NAKAMURA Usaku <usa@r...> * test/ruby/test_require.rb: setting too long string to ENV causes Index: parse.y =================================================================== --- parse.y (revision 31084) +++ parse.y (revision 31085) @@ -6230,7 +6230,7 @@ if (rb_memcicmp(name + nlen + 1, "unix", 4) == 0) return nlen; } - if (len > 4 && name[nlen = len - 5] == '-') { + if (len > 4 && name[nlen = len - 4] == '-') { if (rb_memcicmp(name + nlen + 1, "dos", 3) == 0) return nlen; if (rb_memcicmp(name + nlen + 1, "mac", 3) == 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/