Skip to content

Commit 1e690b8

Browse files
committed
Merge pull request kohsuke#43 from bagges/master
added conversion support for "Double" type
2 parents 40bcc4a + c3d8548 commit 1e690b8

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)