fixed types

This commit is contained in:
Dominic Grimm 2021-11-20 14:50:11 +01:00
parent 97429418ec
commit 9707f5d179

View file

@ -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