Change the type of entry.Free to address.Count
This change is backward compatible, because the underlying types of address.Offset (the previous type) and address.Count are the same and the Gob encoder does not require types to exactly correspond.
This commit is contained in:
1 parent
ef5f80a05a
commit
85cea672d3
3 files changed
+12
-13
No files matched your search
@@ -151,7 +151,7 @@ func Length(a, b Address) Count {
|
||||
return Count(a - b)
|
||||
}
|
||||
|
||||
func Min(a, b Offset) Offset {
|
||||
func Min(a, b Count) Count {
|
||||
if a > b {
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user