diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Oct 13 18:20:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (parser_magic_comment): fixed normalization. + Mon Oct 12 23:27:57 2009 Shugo Maeda <shugo@ruby-lang.org> * lib/net/ftp.rb (login): use "anonymous@" as a default password. @@ -6332,7 +6332,7 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len) str_copy(name, beg, n); s = RSTRING_PTR(name); for (i = 0; i < n; ++i) { - if (*s == '-') *s = '_'; + if (s[i] == '-') s[i] = '_'; } #ifndef RIPPER do { @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 388 +#define RUBY_PATCHLEVEL 389 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |