nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb11edc
)
interpreter: Fix, removed a useless condition in call.
author
Lucas Bajolet
<r4pass@hotmail.com>
Fri, 4 Apr 2014 15:13:58 +0000
(11:13 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Mon, 7 Apr 2014 17:57:07 +0000
(13:57 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
src/naive_interpreter.nit
patch
|
blob
|
history
diff --git
a/src/naive_interpreter.nit
b/src/naive_interpreter.nit
index
7b42204
..
9a25fa9
100644
(file)
--- a/
src/naive_interpreter.nit
+++ b/
src/naive_interpreter.nit
@@
-908,10
+908,6
@@
redef class AExternMethPropdef
else if pname == "atof" then
return v.float_instance(recvval.to_f)
end
- else if cname == "Int" then
- if pname == "rand" then
- return v.int_instance(args[0].to_i.rand)
- end
else if cname == "Float" then
if pname == "cos" then
return v.float_instance(args[0].to_f.cos)