summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_stat.inl
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-04-11 12:35:40 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-04-11 12:35:40 +0000
commit049832471d14d01b6897c540c27a55b3a2240f58 (patch)
tree70f6d307afc2d4ed595fd7b9b1f65800459ab7bb /ACE/ace/OS_NS_sys_stat.inl
parent5d6dcd02b8c1717ecb8eb65ccb388c182fc859ae (diff)
downloadATCD-049832471d14d01b6897c540c27a55b3a2240f58.tar.gz
ChangeLogTag: Wed Apr 11 12:33:37 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ACE/ace/OS_NS_sys_stat.inl')
-rw-r--r--ACE/ace/OS_NS_sys_stat.inl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_sys_stat.inl b/ACE/ace/OS_NS_sys_stat.inl
index ed4fa478181..ecfaf8b70e7 100644
--- a/ACE/ace/OS_NS_sys_stat.inl
+++ b/ACE/ace/OS_NS_sys_stat.inl
@@ -115,7 +115,8 @@ namespace ACE_OS
# endif /* _FILE_OFFSET_BITS == 64 */
#else /* !ACE_WIN32 */
ACE_stat sb;
- return ACE_OS::fstat (handle, &sb) == -1 ? -1 : sb.st_size;
+ return ACE_OS::fstat (handle, &sb) == -1 ?
+ static_cast<ACE_OFF_T> (-1) : sb.st_size;
#endif
}