From 854b5697508936c09e2872b6165e44cf212a30c6 Mon Sep 17 00:00:00 2001 From: eeeXun Date: Thu, 23 Mar 2023 11:55:37 +0800 Subject: [PATCH] refactor: replace int with int8 in UICycle --- internal/ui/cycle.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ui/cycle.go b/internal/ui/cycle.go index f0c9b2b..d372335 100644 --- a/internal/ui/cycle.go +++ b/internal/ui/cycle.go @@ -6,8 +6,8 @@ import ( type UICycle struct { widget []tview.Primitive - index int - len int + index int8 + len int8 } func NewUICycle(widgets ...tview.Primitive) *UICycle { @@ -20,7 +20,7 @@ func NewUICycle(widgets ...tview.Primitive) *UICycle { return &UICycle{ widget: w, index: 0, - len: len(w), + len: int8(len(w)), } }