summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-10-12 19:12:50 +0100
committerVicent Marti <tanoku@gmail.com>2010-10-27 00:59:09 +0300
commit2d16373cb8d8c22b3ec99a6936b82821e99e64a5 (patch)
tree8ce9e705cb43f5c89583741d76b70e0dcb78339d /src/commit.c
parente30056275c2a6d857d004d850658ccf3490a7876 (diff)
downloadlibgit2-2d16373cb8d8c22b3ec99a6936b82821e99e64a5.tar.gz
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>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions