diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-06-01 19:30:29 +0100 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 11:18:55 +0200 |
commit | 4e0d6d864d3632a820d8bf3dd89ff333b9bbd34d (patch) | |
tree | c27b446edd6db301478ee29880aaabfe2bb66539 /src/commit.c | |
parent | 5440906feb5e41241a699ee413475b7911284c41 (diff) | |
download | libgit2-4e0d6d864d3632a820d8bf3dd89ff333b9bbd34d.tar.gz |
msvc: Fix an "conversion, loss of data" compiler warning
In particular, the compiler issues the following warning:
src/revwalk.c(61) : warning C4244: '=' : conversion from \
'unsigned int' to 'unsigned char', possible loss of data
In order to suppress the warning, we change the type of the
sorting "enum" field of the git_revpool structure to be consistent
with the sort_mode parameter of the gitrp_sorting() function.
Note that if the size of the git_revpool structure is an issue,
then we could change the type of the sort_mode parameter instead.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions