Merge branch 'jc/cache-tree' into next
authorJunio C Hamano <junkio@cox.net>
Sun, 28 May 2006 20:39:51 +0000 (13:39 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 28 May 2006 20:39:51 +0000 (13:39 -0700)
* jc/cache-tree:
  git-write-tree writes garbage on sparc64

read-cache.c

index 36bd4ea..c499c51 100644 (file)
@@ -826,7 +826,7 @@ static int ce_write(SHA_CTX *context, int fd, void *data, unsigned int len)
 }
 
 static int write_index_ext_header(SHA_CTX *context, int fd,
-                                 unsigned long ext, unsigned long sz)
+                                 unsigned int ext, unsigned int sz)
 {
        ext = htonl(ext);
        sz = htonl(sz);