Fix: mem align

This commit is contained in:
zijiren233 2024-06-23 22:19:31 +08:00
parent 8798ac5ca9
commit 10c21f31c4
3 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ type BoolSetting interface {
var _ BoolSetting = (*Bool)(nil)
type Bool struct {
value uint32
setting
defaultValue bool
value uint32
beforeInit, beforeSet func(BoolSetting, bool) (bool, error)
afterInit, afterSet func(BoolSetting, bool)
}

View File

@ -24,9 +24,9 @@ type Float64Setting interface {
var _ Float64Setting = (*Float64)(nil)
type Float64 struct {
value uint64
setting
defaultValue float64
value uint64
validator func(float64) error
beforeInit, beforeSet func(Float64Setting, float64) (float64, error)
afterInit, afterSet func(Float64Setting, float64)

View File

@ -23,9 +23,9 @@ type Int64Setting interface {
var _ Int64Setting = (*Int64)(nil)
type Int64 struct {
value int64
setting
defaultValue int64
value int64
validator func(int64) error
beforeInit, beforeSet func(Int64Setting, int64) (int64, error)
afterInit, afterSet func(Int64Setting, int64)