]> git.proxmox.com Git - libgit2.git/commitdiff
Improve the portability of the gitfo_cache code (to 64-bit systems)
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Thu, 4 Jun 2009 16:13:49 +0000 (17:13 +0100)
committerAndreas Ericsson <ae@op5.se>
Fri, 5 Jun 2009 10:14:07 +0000 (12:14 +0200)
This supresses some "conversion from 'size_t' to 'unsigned int',
possible loss of data" warning messages from the MS Visual C/C++
compiler with -Wp64.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Andreas Ericsson <ae@op5.se>
src/fileops.c

index 3d35c193ff6508d92b3986a52c103b2c1fddea0f..5de89cbd8c0a0c8bf4fc43938f09e58936b8c2c7 100644 (file)
@@ -133,7 +133,7 @@ void gitfo_free_map(git_map *out)
 /* cached diskio */
 struct gitfo_cache {
        git_file fd;
-       unsigned int cache_size, pos;
+       size_t cache_size, pos;
        unsigned char *cache;
 };