# HG changeset patch
# User Juuso Lapinlampi <wubthecaptain@gmail.com>
# Date 1537306678 0
#      Tue Sep 18 21:37:58 2018 +0000
# Node ID faaaa3310b88e61722016e0c59aeae65265531ec
# Parent  1b099784fbca59d41912081c831bfd0eefbd412f
updaterevision: Fix HG_REVISION_NUMBER format type

time_t is usually a signed integer (32-bits or 64-bits wide), not
unsigned. ISO C does not specify any particular type.

See: https://stackoverflow.com/q/471248
Fixes: #3497

diff -r 1b099784fbca -r faaaa3310b88 tools/updaterevision/updaterevision.c
--- a/tools/updaterevision/updaterevision.c	Sat Sep 15 10:24:53 2018 +0200
+++ b/tools/updaterevision/updaterevision.c	Tue Sep 18 21:37:58 2018 +0000
@@ -158,7 +158,7 @@
 			hash, vertag, hash, lastlog);
 
 		// [BB] Also save out hg info.
-		fprintf (stream, "#define HG_REVISION_NUMBER %lu\n", hgdate);
+		fprintf (stream, "#define HG_REVISION_NUMBER %lld\n", hgdate);
 		// [BB] We use the short hash.
 		hash[12] = 0;
 		fprintf (stream, "#define HG_REVISION_HASH_STRING \"%s\"\n", hash);
