mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-23 13:01:42 -08:00
ffi tests: do explicit cast
This commit is contained in:
parent
42901b3c31
commit
0a0f71cce1
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@
|
|||
(print
|
||||
'(defun callback-user (callback arg)
|
||||
(ffi:c-inline (callback arg) (:pointer-void :int) :int "
|
||||
int (*foo)(int) = #0;
|
||||
int (*foo)(int) = (int (*)(int))#0;
|
||||
@(return) = foo(#1);
|
||||
"
|
||||
:one-liner nil :side-effects nil))
|
||||
|
|
@ -86,7 +86,7 @@ int (*foo)(int) = #0;
|
|||
(print
|
||||
'(defun callback-user (callback arg)
|
||||
(ffi:c-inline (callback arg) (:pointer-void :int) :int "
|
||||
int (*foo)(int) = #0;
|
||||
int (*foo)(int) = (int (*)(int))#0;
|
||||
@(return) = foo(#1);
|
||||
"
|
||||
:one-liner nil :side-effects nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue