diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-09 04:20:49 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-09 04:20:49 +0000 |
commit | 081db2c6b9aeed8bd70a9910e17e7f7598c963c4 (patch) | |
tree | 9014daadd543ebca9a176cdf1f95ae3480c53c02 /ace/Env_Value_T.i | |
parent | d43d47c2ccecf8529d57e9378dbdf466785541cf (diff) | |
download | ATCD-081db2c6b9aeed8bd70a9910e17e7f7598c963c4.tar.gz |
Added static cast in short and int conversion function.
Diffstat (limited to 'ace/Env_Value_T.i')
-rw-r--r-- | ace/Env_Value_T.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Env_Value_T.i b/ace/Env_Value_T.i index 397a5614e0f..72172c939d2 100644 --- a/ace/Env_Value_T.i +++ b/ace/Env_Value_T.i @@ -71,7 +71,7 @@ ACE_Convert (const char *s, char *&v) ACE_INLINE void ACE_Convert (const char *s, short &si) { - si = ACE_OS::strtol (s, 0, 10); + si = ACE_static_cast (short, ACE_OS::strtol (s, 0, 10)); } ACE_INLINE void @@ -83,7 +83,7 @@ ACE_Convert (const char *s, long &l) ACE_INLINE void ACE_Convert (const char *s, int &i) { - i = ACE_OS::strtol (s, 0, 10); + i = ACE_static_cast (int, ACE_OS::strtol (s, 0, 10)); } ACE_INLINE void |