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:
Martynas Pumputis committed 2016-05-16 15:03:05 +01:00
1 parent ef5f80a05a
commit 85cea672d3
3 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -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
}