author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Wed, 23 Jun 2010 19:47:50 +0000 (20:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Jun 2010 18:04:16 +0000 (11:04 -0700) | ||
commit | 9eafa1201b2dcc703258ca7cd53de8ac4de74565 | |
tree | d165623aa85aeca45f20e9c6845dedbf2ec4f641 | tree | snapshot |
parent | 8b6d7924f865f29e625d0fbd3e1307af30e51908 | commit | diff |
msvc: Fix some compiler warnings
In particular, using the normal (or production) compiler
warning level (-W3), msvc complains as follows:
.../sha1.c(244) : warning C4018: '<' : signed/unsigned mismatch
.../sha1.c(270) : warning C4244: 'function' : conversion from \
'unsigned __int64' to 'unsigned long', possible loss of data
.../sha1.c(271) : warning C4244: 'function' : conversion from \
'unsigned __int64' to 'unsigned long', possible loss of data
Note that gcc issues a similar complaint about line 244 when
compiling with -Wextra.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In particular, using the normal (or production) compiler
warning level (-W3), msvc complains as follows:
.../sha1.c(244) : warning C4018: '<' : signed/unsigned mismatch
.../sha1.c(270) : warning C4244: 'function' : conversion from \
'unsigned __int64' to 'unsigned long', possible loss of data
.../sha1.c(271) : warning C4244: 'function' : conversion from \
'unsigned __int64' to 'unsigned long', possible loss of data
Note that gcc issues a similar complaint about line 244 when
compiling with -Wextra.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.c | diff | blob | history |