channeldb: add int64 to codec

This commit is contained in:
Joost Jager 2019-08-12 14:58:59 +02:00
parent 05e6b62cb2
commit 061b34b924
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -108,7 +108,7 @@ func WriteElement(w io.Writer, element interface{}) error {
return err
}
case uint64:
case int64, uint64:
if err := binary.Write(w, byteOrder, e); err != nil {
return err
}
@ -280,7 +280,7 @@ func ReadElement(r io.Reader, element interface{}) error {
return err
}
case *uint64:
case *int64, *uint64:
if err := binary.Read(r, byteOrder, e); err != nil {
return err
}