X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=cache-tree.c;h=077f03436941e9c0bf31d3bb2002c1e36b8817b9;hb=8391c60b6e08604e7023a8fff74350d6b35974af;hp=350a79b768e7c032e1b4815f7201c9ce5f88bc8d;hpb=27c1dbea3e3a23b3c4b3707dfc9a71c3279ae279;p=git.git diff --git a/cache-tree.c b/cache-tree.c index 350a79b76..077f03436 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -478,7 +478,7 @@ static struct cache_tree *read_one(const char **buffer, unsigned long *size_p) if (0 <= it->entry_count) { if (size < 20) goto free_return; - hashcpy(it->sha1, (unsigned char*)buf); + hashcpy(it->sha1, (const unsigned char*)buf); buf += 20; size -= 20; }