nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed8557
)
lib/c: fix type of index in `NativeCArray::[]`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 4 Dec 2014 18:46:26 +0000
(13:46 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 14 Jan 2015 13:47:15 +0000
(08:47 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/c.nit
patch
|
blob
|
history
diff --git
a/lib/c.nit
b/lib/c.nit
index
d94ae8e
..
ae1b875
100644
(file)
--- a/
lib/c.nit
+++ b/
lib/c.nit
@@
-70,10
+70,10
@@
extern class NativeCArray `{ void * `}
type E: nullable Object
# Get element at `index`.
- fun [](index: E): E is abstract
+ fun [](index: Int): E is abstract
# Set `val` at `index`.
- fun []=(index: E, val: E) is abstract
+ fun []=(index: Int, val: E) is abstract
# Return pointer to the address to the second element of this array
#