diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-20 02:14:24 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-20 02:14:24 +0000 |
| commit | dbef460d6f05b2671ed963112c4354a4f07ec56e (patch) | |
| tree | 1bdeac2de217d178e7f2ec93e222405b41514f78 /ext/win32ole | |
| parent | 5d25beebb17c04350a1e462db83c7d76b4344e14 (diff) | |
| download | ruby-dbef460d6f05b2671ed963112c4354a4f07ec56e.tar.gz ruby-dbef460d6f05b2671ed963112c4354a4f07ec56e.tar.xz ruby-dbef460d6f05b2671ed963112c4354a4f07ec56e.zip | |
* ext/win32ole/win32ole.c (folevariant_value): could not compile
with C90 compiler.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole')
| -rw-r--r-- | ext/win32ole/win32ole.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index e3912bcda..c42e9f9a2 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); |
