mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
Fix procedure->pointer' for functions returning
void'.
* libguile/foreign.c (unpack): Handle `FFI_TYPE_VOID'. * test-suite/tests/foreign.test ("procedure->pointer")["procedures returning void"]: New test. Reported by Tristan Colgate <tcolgate@gmail.com>.
This commit is contained in:
parent
572eef50c2
commit
443f25dcff
2 changed files with 13 additions and 0 deletions
|
@ -905,6 +905,9 @@ unpack (const ffi_type *type, void *loc, SCM x)
|
|||
SCM_VALIDATE_POINTER (1, x);
|
||||
*(void **) loc = SCM_POINTER_VALUE (x);
|
||||
break;
|
||||
case FFI_TYPE_VOID:
|
||||
/* Do nothing. */
|
||||
break;
|
||||
default:
|
||||
abort ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue