From 5bc9512a0b41f44ad3cfdf107695e35fd3a15269 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 20 Mar 2006 02:14:24 +0000 Subject: * ext/win32ole/win32ole.c (folevariant_value): could not compile with C90 compiler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32ole/win32ole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/win32ole') diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index e3912bcdad..c42e9f9a29 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -7131,12 +7131,13 @@ folevariant_value(self) if ((vt & ~VT_BYREF) == (VT_UI1|VT_ARRAY)) { SAFEARRAY *psa; + int dim; if (vt & VT_BYREF) { psa = *V_ARRAYREF(&(pvar->var)); } else { psa = V_ARRAY(&(pvar->var)); } - int dim = SafeArrayGetDim(psa); + dim = SafeArrayGetDim(psa); if (dim == 1) { VALUE args = rb_ary_new3(1, rb_str_new2("C*")); val = rb_apply(val, rb_intern("pack"), args); -- cgit v1.2.3