diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-06-04 17:13:49 +0100 |
|---|---|---|
| committer | Andreas Ericsson <ae@op5.se> | 2009-06-05 12:14:07 +0200 |
| commit | 4c9a39732942f763191d47be51b414bbc81bbbfd (patch) | |
| tree | d1aa69929be363f0798f1ff226078c9912415f5f /src/fileops.c | |
| parent | 3e0fb8fb56426d4645a50ce85fead9ad93ce59ba (diff) | |
| download | libgit2-4c9a39732942f763191d47be51b414bbc81bbbfd.tar.gz | |
Improve the portability of the gitfo_cache code (to 64-bit systems)
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>
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 3d35c193f..5de89cbd8 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -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; }; |
