summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_stat.inl
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2006-10-27 18:32:12 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2006-10-27 18:32:12 +0000
commite940ecd4aaa289c47910513da6f6c12e61259605 (patch)
tree44fc835b1f2a971a856139305fbd49839b557195 /ACE/ace/OS_NS_sys_stat.inl
parent2776a06dc2b2fcee90896770fbe71194a6baa6a7 (diff)
downloadATCD-e940ecd4aaa289c47910513da6f6c12e61259605.tar.gz
ChangeLogTag:Fri Oct 27 19:28:16 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/ace/OS_NS_sys_stat.inl')
-rw-r--r--ACE/ace/OS_NS_sys_stat.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/OS_NS_sys_stat.inl b/ACE/ace/OS_NS_sys_stat.inl
index 63cab76ce22..9cfabb260b9 100644
--- a/ACE/ace/OS_NS_sys_stat.inl
+++ b/ACE/ace/OS_NS_sys_stat.inl
@@ -107,10 +107,10 @@ namespace ACE_OS
? size.QuadPart
: (ACE_OS::set_errno_to_last_error (), -1));
# else
- ACE_OFF_T const size = ::GetFileSize (handle, 0);
+ DWORD const size = ::GetFileSize (handle, 0);
return
(size != INVALID_FILE_SIZE
- ? size
+ ? static_cast<ACE_OFF_T> (size)
: (ACE_OS::set_errno_to_last_error (), -1));
# endif /* _FILE_OFFSET_BITS == 64 */
#else /* !ACE_WIN32 */