Skip to content

Commit

Permalink
Merge pull request #91 from Ponewor/rename-variable-in-enc-vints
Browse files Browse the repository at this point in the history
Rename invalid variable name in encVints from seconds to days
  • Loading branch information
sylwiaszunejko authored Jun 20, 2024
2 parents 790b1a8 + 8f21300 commit 0fa23fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ func encIntZigZag(n int64) uint64 {
return uint64((n >> 63) ^ (n << 1))
}

func encVints(months int32, seconds int32, nanos int64) []byte {
buf := append(encVint(int64(months)), encVint(int64(seconds))...)
func encVints(months int32, days int32, nanos int64) []byte {
buf := append(encVint(int64(months)), encVint(int64(days))...)
return append(buf, encVint(nanos)...)
}

Expand Down

0 comments on commit 0fa23fe

Please sign in to comment.