diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-09 10:21:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-09 10:21:30 +0000 |
commit | f19771d34108ab14023e4d90f2f5929270b623b0 (patch) | |
tree | e4059c405fc99d061e7ddf44a3044f44eef242ec /pjlib/src | |
parent | 2979b937447c7b15352682e44a9f465c08fea112 (diff) |
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
Diffstat (limited to 'pjlib/src')
-rw-r--r-- | pjlib/src/pj/os_time_win32.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); |