summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-24 18:33:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-24 18:33:50 +0000
commit50c22a35b1c3ec4a6d18ea2171ce92bb0fdb99d9 (patch)
treec04ed9798be30923eec668e9deed5f377e67b02d /lib
parent96a77f096d77c06e42cf4adf43679279914836f1 (diff)
downloadruby-50c22a35b1c3ec4a6d18ea2171ce92bb0fdb99d9.tar.gz
ruby-50c22a35b1c3ec4a6d18ea2171ce92bb0fdb99d9.tar.xz
ruby-50c22a35b1c3ec4a6d18ea2171ce92bb0fdb99d9.zip
* gcc -Wall clean-up.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/debug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 17879e514..74026233c 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -703,7 +703,7 @@ EOHELP
frame_set_pos(file, line)
if !@no_step or @frames.size == @no_step
@stop_next -= 1
- @stop_next = 0 if @stop_next < 0
+ @stop_next = -1 if @stop_next < 0
elsif @frames.size < @no_step
@stop_next = 0 # break here before leaving...
else