From 6ed7a0835bd86403cfbc792bb1fe030481242e59 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 27 Jan 2004 01:35:53 +0000 Subject: * ext/win32ole/win32ole.c (set_argv): fix condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32ole/win32ole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/win32ole') diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index e96c37a559..788f11c3d5 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -1694,7 +1694,7 @@ set_argv(realargs, beg, end) Check_Type(argv, T_ARRAY); rb_ary_clear(argv); - while (--end >= beg) { + while (end-- > beg) { rb_ary_push(argv, ole_variant2val(&realargs[end])); VariantClear(&realargs[end]); } -- cgit v1.2.3