linker and collector test work again

had to give space a fixed number of addresses
This commit is contained in:
Torsten Ruger
2018-07-02 16:19:01 +03:00
parent 4e49c0469c
commit 474cd4b348
6 changed files with 12 additions and 15 deletions

View File

@ -38,7 +38,7 @@ module Parfait
add_type(cl.instance_type)
end
101.times { @integers = Integer.new(0,@integers) }
10.times { @addresses = ReturnAddress.new(0,@addresses) }
200.times { @addresses = ReturnAddress.new(0,@addresses) }
message = Message.new(nil)
50.times do
@messages = Message.new message
@ -69,9 +69,6 @@ module Parfait
# hand out a return address for use as constant the address is added
def get_address
10.times do # 10 for whole pages
@next_address = ReturnAddress.new(0,@next_address)
end unless @next_address.next_integer
addr = @next_address
@next_address = @next_address.next_integer
addr