mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-03 20:27:31 +00:00
fix: atomic.TypedValue panic
This commit is contained in:
@@ -43,7 +43,7 @@ func (t *TypedValue[T]) Swap(new T) T {
|
||||
if old == nil {
|
||||
return DefaultValue[T]()
|
||||
}
|
||||
return old.(T)
|
||||
return old.(tValue[T]).value
|
||||
}
|
||||
|
||||
func (t *TypedValue[T]) CompareAndSwap(old, new T) bool {
|
||||
|
||||
Reference in New Issue
Block a user