fixed types
This commit is contained in:
parent
97429418ec
commit
9707f5d179
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ module Lifo
|
|||
super(capacity)
|
||||
end
|
||||
|
||||
def push(e : T) : Int
|
||||
def push(e : T) : Int32
|
||||
if @capacity == -1 || size < @capacity
|
||||
@data << e
|
||||
|
||||
|
@ -14,7 +14,7 @@ module Lifo
|
|||
end
|
||||
end
|
||||
|
||||
def push?(e : T) : Int?
|
||||
def push?(e : T) : Int32?
|
||||
begin
|
||||
push(e)
|
||||
rescue OverflowError
|
||||
|
|
Loading…
Reference in a new issue