mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
b619a8859f
commit
5bc9512a0b
2 changed files with 9 additions and 3 deletions
|
@ -1,10 +1,15 @@
|
|||
Mon Mar 20 11:12:38 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/win32ole/win32ole.c (folevariant_value): could not compile
|
||||
with C90 compiler.
|
||||
|
||||
Sun Mar 19 09:46:30 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c(ole_val2olevariantdata): change behavior
|
||||
* ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
|
||||
of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
|
||||
String object.
|
||||
|
||||
* ext/win32ole/win32ole.c(folevariant_value): ditto.
|
||||
* ext/win32ole/win32ole.c (folevariant_value): ditto.
|
||||
|
||||
* ext/win32ole/tests/testOLEVARIANT.rb: ditto.
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue