Skip to content

Commit c3d8548

Browse files
committed
added conversion support for "Double" type
1 parent dccf1fd commit c3d8548

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/src/main/java/com4j/ComMethod.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ static NativeType getDefaultConversion(Type t) {
242242
return NativeType.VariantBool_ByRef;
243243
if(Buffer.class.isAssignableFrom(c))
244244
return NativeType.PVOID_ByRef;
245+
if(Double.class.isAssignableFrom(c))
246+
return NativeType.Double_ByRef;
245247
if(c.isArray())
246248
return NativeType.SafeArray_ByRef;
247249
}

0 commit comments

Comments
 (0)