Permalink
Browse files

Unbust voids.

  • Loading branch information...
1 parent beb2796 commit 6424f48fd8818deef02e0f4781fcdb155c7575a6 @jnthn committed Jan 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/NativeCall.pm6
View
@@ -70,7 +70,8 @@ sub type_code_for(Mu ::T) {
"If you want to pass an array, be sure to use the CArray type.";
}
-sub map_return_type($type) {
+multi sub map_return_type(Mu $type) { Mu }
+multi sub map_return_type($type) {
$type === int8 || $type === int16 || $type === int32 || $type === int ?? Int !!
$type === num32 || $type === num64 || $type === num ?? Num !!
$type

0 comments on commit 6424f48

Please sign in to comment.