msvc: Fix an "conversion, possible loss of data" warningmaster
commit998a7bf824c5faca0f9766c9b89bb73ec1315272
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 12 Oct 2010 18:12:50 +0000 (12 19:12 +0100)
committerAndreas Ericsson <ae@op5.se>
Thu, 28 Oct 2010 17:24:01 +0000 (28 19:24 +0200)
treea27befc946bca88c05ab4e27484032f7a9ecbbf0
parent17dd827b6e4807e1b0438da2321842b53aca469c
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>
tests/t0603-sort.c