nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad655a6
)
Modification of the numbering in perfect_hashing.
author
Julien Pagès
<julien.projet@gmail.com>
Wed, 11 Jun 2014 22:00:44 +0000
(
00:00
+0200)
committer
Julien Pagès
<julien.projet@gmail.com>
Fri, 13 Jun 2014 13:47:00 +0000
(15:47 +0200)
The numbering now start at 1 instead of 0.
Signed-off-by: Julien Pagès <julien.projet@gmail.com>
lib/perfect_hashing.nit
patch
|
blob
|
history
diff --git
a/lib/perfect_hashing.nit
b/lib/perfect_hashing.nit
index
9ac59f3
..
a4b8417
100644
(file)
--- a/
lib/perfect_hashing.nit
+++ b/
lib/perfect_hashing.nit
@@
-35,7
+35,7
@@
class Perfecthashing
do
# By default, all identifiers are available
interval = new List[Couple[nullable Int, nullable Int]]
- interval.push(new Couple[nullable Int, nullable Int](0, null))
+ interval.push(new Couple[nullable Int, nullable Int](1, null))
tempht = new Array[nullable Int]
end