Skip to content

Commit

Permalink
Merge pull request #154 from keisuke-kanao/fix-serialization-of-TimeP…
Browse files Browse the repository at this point in the history
…ointSec

fix serialization of TimePointSec
  • Loading branch information
Matthieu Vachon committed Apr 24, 2021
2 parents 21697b8 + 8afd609 commit d58292a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder.go
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 d58292a

Please sign in to comment.