Skip to content

Commit

Permalink
fix serialization of TimePointSec
Browse files Browse the repository at this point in the history
  • Loading branch information
Keisuke Kanao committed Apr 24, 2021
1 parent 21697b8 commit 8afd609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (e *Encoder) Encode(v interface{}) (err error) {
case TimePoint:
return e.writeUint64(uint64(cv))
case TimePointSec:
return e.writeUint64(uint64(cv))
return e.writeUint32(uint32(cv))
case nil:
default:

Expand Down

0 comments on commit 8afd609

Please sign in to comment.