diff options
Diffstat (limited to 'ace/OS_NS_sys_stat.inl')
-rw-r--r-- | ace/OS_NS_sys_stat.inl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/OS_NS_sys_stat.inl b/ace/OS_NS_sys_stat.inl index aaf27b4301d..af93d2e2fa2 100644 --- a/ace/OS_NS_sys_stat.inl +++ b/ace/OS_NS_sys_stat.inl @@ -214,10 +214,11 @@ namespace ACE_OS } else { - stp->st_mode = static_cast<unsigned short>(fdata.dwFileAttributes); + stp->st_mode = static_cast<mode_t>(fdata.dwFileAttributes); stp->st_size = fdata.nFileSizeLow; - stp->st_atime = ACE_Time_Value (fdata.ftLastAccessTime); - stp->st_mtime = ACE_Time_Value (fdata.ftLastWriteTime); + stp->st_atime = ACE_Time_Value (fdata.ftLastAccessTime).sec (); + stp->st_mtime = ACE_Time_Value (fdata.ftLastWriteTime).sec (); + stp->st_ctime = ACE_Time_Value (fdata.ftCreationTime).sec (); } return 0; #elif defined (ACE_HAS_X86_STAT_MACROS) @@ -252,10 +253,11 @@ namespace ACE_OS } else { - stp->st_mode = static_cast<unsigned short>(fdata.dwFileAttributes); + stp->st_mode = static_cast<mode_t>(fdata.dwFileAttributes); stp->st_size = fdata.nFileSizeLow; - stp->st_atime = ACE_Time_Value (fdata.ftLastAccessTime); - stp->st_mtime = ACE_Time_Value (fdata.ftLastWriteTime); + stp->st_atime = ACE_Time_Value (fdata.ftLastAccessTime).sec (); + stp->st_mtime = ACE_Time_Value (fdata.ftLastWriteTime).sec (); + stp->st_ctime = ACE_Time_Value (fdata.ftCreationTime).sec (); } return 0; #elif defined (__BORLANDC__) \ |