switch to 0 based indexing

the world rocked for a moment (and more fixes to follow)
also the crumbling of idealism was heard
This commit is contained in:
Torsten Ruger
2018-05-14 11:55:01 +03:00
parent 4856b9891d
commit ab01fa3862
19 changed files with 205 additions and 235 deletions

View File

@ -75,8 +75,8 @@ module Parfait
# yield to each key value pair
def each
index = 1
while index <= @keys.get_length
index = 0
while index < @keys.get_length
key = @keys.get(index)
value = @values.get(index)
yield key , value
@ -93,8 +93,8 @@ module Parfait
string + "}"
end
def to_sof_node(writer , level , ref)
Sof.hash_to_sof_node( self , writer , level , ref)
def to_rxf_node(writer , level , ref)
Sof.hash_to_rxf_node( self , writer , level , ref)
end
end
end