sha1_file: don't mix enum with int
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramkumar Ramachandra committed
Nov 15, 2011 at 22:29 UTC
5e12e78e52b4219ce27c14404351648fd47854cc
1 file changed
+1
-1
sha1_file.c
+1
-1
@@ -2616,7 +2616,7 @@ static int index_mem(unsigned char *sha1, void *buf, size_t size,
2616
if ((type == OBJ_BLOB) && path) {
2617
struct strbuf nbuf = STRBUF_INIT;
2618
if (convert_to_git(path, buf, size, &nbuf,
2619
- write_object ? safe_crlf : 0)) {
2619
+ write_object ? safe_crlf : SAFE_CRLF_FALSE)) {
2620
buf = strbuf_detach(&nbuf, &size);
2621
re_allocated = 1;
2622
}