nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed1455
)
core::hash_collection: native array storage is no more nullable
author
Jean Privat
<jean@pryen.org>
Tue, 20 Oct 2015 00:04:52 +0000
(20:04 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 20 Oct 2015 00:04:52 +0000
(20:04 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/core/collection/hash_collection.nit
patch
|
blob
|
history
diff --git
a/lib/core/collection/hash_collection.nit
b/lib/core/collection/hash_collection.nit
index
1a27991
..
7c9fc6a
100644
(file)
--- a/
lib/core/collection/hash_collection.nit
+++ b/
lib/core/collection/hash_collection.nit
@@
-24,7
+24,7
@@
end
private abstract class HashCollection[K]
type N: HashNode[K]
- var array: nullable NativeArray[nullable N] = null # Used to store items
+ var array: NativeArray[nullable N] is noautoinit # Used to store items
var capacity: Int = 0 # Size of _array
var the_length: Int = 0 # Number of items in the map