Commit 8ea7fbc0cd5bdee858cfbb239fa043f075a3cc5f

nulltoken 2010-12-18T22:27:26

Fixed a nasty bug which was preventing correct generation of the signature.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/signature.c b/src/signature.c
index c5bfda8..5c9f159 100644
--- a/src/signature.c
+++ b/src/signature.c
@@ -193,7 +193,7 @@ int git_signature__write(git_odb_source *src, const char *header, const git_sign
 	hours = offset / 60;
 	mins = offset % 60;
 
-	return git__source_printf(src, "%s %s <%s> %u %c%02d%02d\n", header, sig->name, sig->email, sig->when.time, sign, hours, mins);
+	return git__source_printf(src, "%s %s <%s> %u %c%02d%02d\n", header, sig->name, sig->email, (unsigned)sig->when.time, sign, hours, mins);
 }