mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-31 22:14:44 +00:00
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>
This commit is contained in:
parent
3e0fb8fb56
commit
4c9a397329
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user