mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 09:36:47 +00:00
index: explicitly cast the teeny index entry members
This commit is contained in:
parent
997e030154
commit
b2ca8d9c29
@ -826,8 +826,8 @@ const git_index_entry *git_index_get_bypath(
|
|||||||
void git_index_entry__init_from_stat(
|
void git_index_entry__init_from_stat(
|
||||||
git_index_entry *entry, struct stat *st, bool trust_mode)
|
git_index_entry *entry, struct stat *st, bool trust_mode)
|
||||||
{
|
{
|
||||||
entry->ctime.seconds = (git_time_t)st->st_ctime;
|
entry->ctime.seconds = (int32_t)st->st_ctime;
|
||||||
entry->mtime.seconds = (git_time_t)st->st_mtime;
|
entry->mtime.seconds = (int32_t)st->st_mtime;
|
||||||
#if defined(GIT_USE_NSEC)
|
#if defined(GIT_USE_NSEC)
|
||||||
entry->mtime.nanoseconds = st->st_mtim.tv_nsec;
|
entry->mtime.nanoseconds = st->st_mtim.tv_nsec;
|
||||||
entry->ctime.nanoseconds = st->st_ctim.tv_nsec;
|
entry->ctime.nanoseconds = st->st_ctim.tv_nsec;
|
||||||
@ -838,7 +838,7 @@ void git_index_entry__init_from_stat(
|
|||||||
git_index__create_mode(0666) : git_index__create_mode(st->st_mode);
|
git_index__create_mode(0666) : git_index__create_mode(st->st_mode);
|
||||||
entry->uid = st->st_uid;
|
entry->uid = st->st_uid;
|
||||||
entry->gid = st->st_gid;
|
entry->gid = st->st_gid;
|
||||||
entry->file_size = st->st_size;
|
entry->file_size = (uint32_t)st->st_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void index_entry_adjust_namemask(
|
static void index_entry_adjust_namemask(
|
||||||
|
Loading…
Reference in New Issue
Block a user