Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make NativeCallOps.toJNAType handle type objects gracefully.
  • Loading branch information
arnsholt committed Feb 16, 2014
1 parent 8181f81 commit 81e634a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java
Expand Up @@ -153,6 +153,8 @@ private static Class javaType(ThreadContext tc, ArgType target, SixModelObject s

public static Object toJNAType(ThreadContext tc, SixModelObject o, ArgType target, SixModelObject info) {
o = Ops.decont(o, tc);
if (Ops.isconcrete(o, tc) == 0) return null;

switch (target) {
case CHAR:
return new Byte((byte) o.get_int(tc));
Expand Down

0 comments on commit 81e634a

Please sign in to comment.