diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-12-06 23:13:00 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-12-06 23:36:21 +0200 |
| commit | a44fc1d413bc1e2f0ed82aff60ce2069c33d2eda (patch) | |
| tree | 115f8e574fe27959e5311819b8d72d4ea41cd941 /src/git2 | |
| parent | f591833095ad9a3bbff42c76531131f7ec6a2954 (diff) | |
| download | libgit2-a44fc1d413bc1e2f0ed82aff60ce2069c33d2eda.tar.gz | |
Fix type-conversion warnings
The types in the git_index_entry struct are now system-defaults, and get
truncated to uint32_t's when written back on the index.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
| -rw-r--r-- | src/git2/index.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git2/index.h b/src/git2/index.h index f0cae09b1..5e4a8d437 100644 --- a/src/git2/index.h +++ b/src/git2/index.h @@ -45,8 +45,8 @@ GIT_BEGIN_DECL /** Time used in a git index entry */ typedef struct { - unsigned int seconds; - unsigned int nanoseconds; + time_t seconds; + time_t nanoseconds; } git_index_time; /** Memory representation of a file entry in the index. */ @@ -59,7 +59,7 @@ typedef struct git_index_entry { unsigned int mode; unsigned int uid; unsigned int gid; - unsigned int file_size; + off_t file_size; git_oid oid; |
