mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-20 01:30:07 -07:00
refactor: replace int with int8 in UICycle
This commit is contained in:
parent
9f7c7b71fa
commit
854b569750
@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user