nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b32fb7
)
compiler: do not crash on fallback ffi with `extern` without a string
author
Jean Privat
<jean@pryen.org>
Sat, 27 Dec 2014 03:34:38 +0000
(22:34 -0500)
committer
Jean Privat
<jean@pryen.org>
Sat, 27 Dec 2014 03:34:38 +0000
(22:34 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
src/compiler/abstract_compiler.nit
patch
|
blob
|
history
diff --git
a/src/compiler/abstract_compiler.nit
b/src/compiler/abstract_compiler.nit
index
eea089a
..
0943964
100644
(file)
--- a/
src/compiler/abstract_compiler.nit
+++ b/
src/compiler/abstract_compiler.nit
@@
-2151,7
+2151,7
@@
redef class AMethPropdef
do
var externname
var at = self.get_single_annotation("extern", v.compiler.modelbuilder)
- if at != null then
+ if at != null and at.n_args.length == 1 then
externname = at.arg_as_string(v.compiler.modelbuilder)
if externname == null then return false
else