nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitc & niti: move the duplicated pkg-config checks to the pkgconfig module
[nit.git]
/
src
/
ffi
/
objc.nit
diff --git
a/src/ffi/objc.nit
b/src/ffi/objc.nit
index
7c293cf
..
9c0545a
100644
(file)
--- a/
src/ffi/objc.nit
+++ b/
src/ffi/objc.nit
@@
-250,7
+250,7
@@
private class FromObjCCallContext
redef fun cast_from(mtype, name)
do
if mtype isa MClassType and mtype.mclass.ftype isa ForeignObjCType then
- return "({name_mtype(mtype)})({name})"
+ return "(__bridge {name_mtype(mtype)})({name})"
else return name
end
end