Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbbit committed Jul 28, 2023
1 parent eb45591 commit 1691e63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion field.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func Any(key string, value interface{}) Field {
i = int64(math.Float64bits(*val))
case []float64:
t = zapcore.ArrayMarshalerType
val = float64s(val)
iface = float64s(val)
case float32:
t = zapcore.Float32Type
i = int64(math.Float32bits(val))
Expand Down Expand Up @@ -606,6 +606,7 @@ func Any(key string, value interface{}) Field {
t = zapcore.ReflectType
break
}
t = zapcore.Uint64Type
i = int64(*val)
case []uint64:
t = zapcore.ArrayMarshalerType
Expand Down

0 comments on commit 1691e63

Please sign in to comment.