From f19771d34108ab14023e4d90f2f5929270b623b0 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 9 Mar 2006 10:21:30 +0000 Subject: Updated MSVC projects to use os_time_win32.c, as os_time_ansi.c caused problems in VC2005 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@313 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/os_time_win32.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pjlib/src/pj/os_time_win32.c') diff --git a/pjlib/src/pj/os_time_win32.c b/pjlib/src/pj/os_time_win32.c index f9799317..94f0450b 100644 --- a/pjlib/src/pj/os_time_win32.c +++ b/pjlib/src/pj/os_time_win32.c @@ -103,13 +103,13 @@ PJ_DEF(pj_status_t) pj_time_encode(const pj_parsed_time *pt, pj_time_val *tv) LARGE_INTEGER li; pj_memset(&st, 0, sizeof(st)); - st.wYear = pt->year; - st.wMonth = pt->mon + 1; - st.wDay = pt->day; - st.wHour = pt->hour; - st.wMinute = pt->min; - st.wSecond = pt->sec; - st.wMilliseconds = pt->msec; + st.wYear = (pj_uint16_t) pt->year; + st.wMonth = (pj_uint16_t) (pt->mon + 1); + st.wDay = (pj_uint16_t) pt->day; + st.wHour = (pj_uint16_t) pt->hour; + st.wMinute = (pj_uint16_t) pt->min; + st.wSecond = (pj_uint16_t) pt->sec; + st.wMilliseconds = (pj_uint16_t) pt->msec; SystemTimeToFileTime(&st, &ft); -- cgit v1.2.3