Use a large enough constant to be later than '20130328010151' number format

This commit is contained in:
Daniel Heath 2013-04-16 10:29:40 +10:00
parent 66fbe2d01a
commit df02edc595

View File

@ -41,7 +41,7 @@ func downRun(cmd *Command, args ...string) {
func getPreviousVersion(dirpath string, version int64) (previous, earliest int64) {
previous = -1
earliest = (1 << 31) - 1
earliest = (1 << 63) - 1
filepath.Walk(dirpath, func(name string, info os.FileInfo, err error) error {
@ -49,7 +49,6 @@ func getPreviousVersion(dirpath string, version int64) (previous, earliest int64
if v > previous && v < version {
previous = v
}
if v < earliest {
earliest = v
}