nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc4d2a
)
nitc: fix casts from Objective-C to internal C
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 18 Nov 2015 21:53:21 +0000
(16:53 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 9 Feb 2016 19:41:46 +0000
(14:41 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/ffi/objc.nit
patch
|
blob
|
history
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