eol warning

This commit is contained in:
Torsten Ruger 2014-09-16 17:15:17 +03:00
parent 45977ecc01
commit db01529b67
2 changed files with 3 additions and 3 deletions

View File

@ -50,13 +50,13 @@ module Arm
# Length of all blocks. Does not take strings into account as they are added after all blocks.
# This is used to determine where a block when it is added after creation (see add_block)
def length
@blocks.inject(0) {| sum , item | sum + item.length}
@blocks.inject(0) {| sum , item | sum + item.mem_length}
end
# This is how you add a forward declared block. This is called automatically when you
# call block with ruby block, but has to be done manually if not
def add_block block
block.at self.length
block.at self.mem_length
@blocks << block
end

View File

@ -5,7 +5,7 @@ module Virtual
# Values must really be Constants or Variables, ie have a storage space
class Value
class Walue
def type
raise "abstract called for #{self.class}"
end