Skip to content

Commit 5589e87

Browse files
committed
name-rev: change a "long" variable to timestamp_t
Earlier dddbad7 ("timestamp_t: a new data type for timestamps", 2017-04-26) updated all in-core variables, fields and function return values that are used to store "seconds since epoch" to a new type timestamp_t. Unfortunately one variable "cutoff", which is used to keep track of the oldest timestamp of commit we saw on the command line, was "long" and left behind. Update it to timestamp_t as well. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3f78971 commit 5589e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/name-rev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef struct rev_name {
1515
int distance;
1616
} rev_name;
1717

18-
static long cutoff = LONG_MAX;
18+
static timestamp_t cutoff = TIME_MAX;
1919

2020
/* How many generations are maximally preferred over _one_ merge traversal? */
2121
#define MERGE_TRAVERSAL_WEIGHT 65535

0 commit comments

Comments
 (0)