mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Sha1Lookup: Fixed two MSVC compilation warnings.
This commit is contained in:
parent
04fdc10d35
commit
bb88da7f90
@ -14,10 +14,10 @@
|
|||||||
|
|
||||||
#define GIT_PATH_LIST_SEPARATOR ':'
|
#define GIT_PATH_LIST_SEPARATOR ':'
|
||||||
|
|
||||||
#ifdef GIT__WIN32
|
#ifdef GIT_WIN32
|
||||||
#define GIT_PLATFORM_PATH_SEP '/'
|
|
||||||
#else
|
|
||||||
#define GIT_PLATFORM_PATH_SEP '\\'
|
#define GIT_PLATFORM_PATH_SEP '\\'
|
||||||
|
#else
|
||||||
|
#define GIT_PLATFORM_PATH_SEP '/'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GIT_WIN32
|
#ifdef GIT_WIN32
|
||||||
|
@ -97,7 +97,7 @@ int sha1_entry_pos(const void *table,
|
|||||||
unsigned lo, unsigned hi, unsigned nr,
|
unsigned lo, unsigned hi, unsigned nr,
|
||||||
const unsigned char *key)
|
const unsigned char *key)
|
||||||
{
|
{
|
||||||
const unsigned char *base = table;
|
const unsigned char *base = (const unsigned char*)table;
|
||||||
const unsigned char *hi_key, *lo_key;
|
const unsigned char *hi_key, *lo_key;
|
||||||
unsigned ofs_0;
|
unsigned ofs_0;
|
||||||
|
|
||||||
@ -192,5 +192,5 @@ int sha1_entry_pos(const void *table,
|
|||||||
lo_key = mi_key + elem_size;
|
lo_key = mi_key + elem_size;
|
||||||
}
|
}
|
||||||
} while (lo < hi);
|
} while (lo < hi);
|
||||||
return -lo-1;
|
return -((int)lo)-1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user