Go to file
Ramsay Jones 2d16373cb8 msvc: Fix an "conversion, possible loss of data" warning
In particular, msvc complains thus:

    t0603-sort.c(23) : warning C4244: 'function' : conversion from \
        'time_t' to 'unsigned int', possible loss of data

Note that msvc, by default, defines time_t as a 64-bit type, whereas
srand() is expecting an (32-bit) unsigned int. In order to suppress
the warning, we simply cast the return value of the time() function
call to 'unsigned int'.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
2010-10-27 00:59:09 +03:00
src bswap.h: Add ntohs() and htons() functions 2010-10-27 00:59:05 +03:00
tests msvc: Fix an "conversion, possible loss of data" warning 2010-10-27 00:59:09 +03:00
.gitignore Makefile: Add support for custom build options in config.mak file 2010-02-28 20:10:35 +00:00
.HEADER Switch the license from BSD to GPL+libgcc exception 2008-11-01 15:55:47 -07:00
api.doxygen Fix "'__thread' not at start of declaration" warnings (-Wextra) 2010-01-20 20:19:06 +00:00
CONVENTIONS Move include files to include/git/, drop git_ prefix from file names 2008-11-01 15:42:23 -07:00
COPYING Switch the license from BSD to GPL+libgcc exception 2008-11-01 15:55:47 -07:00
git.git-authors Correct Adam Simpkins' name 2010-04-15 09:57:58 +02:00
libgit2.pc.in Add support for installing to a libdir other than 'lib'. 2009-02-01 15:00:10 -08:00
Makefile msvc: Disable a level 4 warning and change -W3 to -W4 2010-06-07 19:46:17 +01:00