summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 05:20:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 05:20:39 +0000
commit01d834c833686cd36a275d510e1797dda0650859 (patch)
tree568c351a894d8dfe24458b342b4e79d8df5444b2 /string.c
parentbaa320bf271da022032fe09abf01b9e5e776f939 (diff)
downloadruby-01d834c833686cd36a275d510e1797dda0650859.tar.gz
ruby-01d834c833686cd36a275d510e1797dda0650859.tar.xz
ruby-01d834c833686cd36a275d510e1797dda0650859.zip
* parse.y: yyparse #defines moved from intern.h
* ruby.c (proc_options): access prefixed "ruby_yydebug". * applied modifies to pacify some of gcc -Wall warnings. * parse.y (arg): no more ugly hack for "**", so that "-2**2" to be parsed as "(-2)**2", whereas "- 2**2" or "-(2)**2" to be parsed as "-(2**2)". * parse.y (yylex): '-2' to be literal fixnum. [new] * time.c (time_succ): new method for Range support. * time.c (time_arg): nil test against v[6] (usec). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index fd587503b..f3c309763 100644
--- a/string.c
+++ b/string.c
@@ -2444,7 +2444,7 @@ rb_str_split_m(argc, argv, str)
VALUE spat;
VALUE limit;
int char_sep = -1;
- long beg, end, i;
+ long beg, end, i = 0;
int lim = 0;
VALUE result, tmp;