From 9707f5d179b14b041ec4fbdbc7524a0786b8198d Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Sat, 20 Nov 2021 14:50:11 +0100 Subject: [PATCH] fixed types --- src/lifo/stack.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lifo/stack.cr b/src/lifo/stack.cr index 92bd833..8c2a4e0 100644 --- a/src/lifo/stack.cr +++ b/src/lifo/stack.cr @@ -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