nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b105fb5
)
global_compiler: remove a useless local variable
author
Jean Privat
<jean@pryen.org>
Thu, 22 Oct 2015 00:31:01 +0000
(20:31 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 22 Oct 2015 00:31:01 +0000
(20:31 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/compiler/global_compiler.nit
patch
|
blob
|
history
diff --git
a/src/compiler/global_compiler.nit
b/src/compiler/global_compiler.nit
index
49671f9
..
273d645
100644
(file)
--- a/
src/compiler/global_compiler.nit
+++ b/
src/compiler/global_compiler.nit
@@
-246,7
+246,6
@@
class GlobalCompiler
var res = v.new_var(mtype)
res.is_exact = true
if is_native_array then
- var mtype_elt = mtype.arguments.first
v.add("{res} = nit_alloc(sizeof(struct {mtype.c_name}) + length*sizeof(val*));")
v.add("((struct {mtype.c_name}*){res})->length = length;")
else