Skip to content

Commit 5554451

Browse files
mjggitster
authored andcommitted
name-rev: change ULONG_MAX to TIME_MAX
Earlier, dddbad7 ("timestamp_t: a new data type for timestamps", 2017-04-26) changed several types to timestamp_t. 5589e87 ("name-rev: change a "long" variable to timestamp_t", 2017-05-20) cleaned up a missed variable, but both missed a _MAX constant. Change the remaining constant to the one appropriate for the current type Signed-off-by: Michael J Gruber <git@grubix.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 78089b7 commit 5554451

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/name-rev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static int name_ref(const char *path, const struct object_id *oid, int flags, vo
252252
struct commit *commit = (struct commit *)o;
253253
int from_tag = starts_with(path, "refs/tags/");
254254

255-
if (taggerdate == ULONG_MAX)
255+
if (taggerdate == TIME_MAX)
256256
taggerdate = ((struct commit *)o)->date;
257257
path = name_ref_abbrev(path, can_abbreviate_output);
258258
name_rev(commit, xstrdup(path), taggerdate, 0, 0,

0 commit comments

Comments
 (0)