summaryrefslogtreecommitdiff
path: root/ace/DLL_Manager.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-08-19 13:25:15 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-08-19 13:25:15 +0000
commit92d4bc7aa4d30e9c3563af33bcc1b3713d914bc0 (patch)
tree3a887408cf122c05b230944931d25351c41a6349 /ace/DLL_Manager.cpp
parentb7e5d869babcc777a071ff07ce32910d9216e25f (diff)
downloadATCD-92d4bc7aa4d30e9c3563af33bcc1b3713d914bc0.tar.gz
ChangeLogTag: Fri Aug 19 13:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/DLL_Manager.cpp')
-rw-r--r--ace/DLL_Manager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/DLL_Manager.cpp b/ace/DLL_Manager.cpp
index 9229482c317..5f732ddc8d5 100644
--- a/ace/DLL_Manager.cpp
+++ b/ace/DLL_Manager.cpp
@@ -323,11 +323,11 @@ ACE_DLL_Handle::get_dll_names (const ACE_TCHAR *dll_name,
// 1. Separate the dll_name into the dir part and the file part. We
// only decorate the file part to determine the names to try loading.
- int pos = base.rfind (ACE_DIRECTORY_SEPARATOR_CHAR);
+ ssize_t pos = base.rfind (ACE_DIRECTORY_SEPARATOR_CHAR);
if (pos != ACE_TString::npos)
{
- base_dir = base.substr (0, static_cast<ssize_t>(pos) + 1);
- base_file = base.substr (static_cast<size_t>(pos) + 1);
+ base_dir = base.substr (0, pos + 1);
+ base_file = base.substr (pos + 1);
}
else
base_file = base;
@@ -336,8 +336,8 @@ ACE_DLL_Handle::get_dll_names (const ACE_TCHAR *dll_name,
// suffix to base_suffix.
if ((pos = base_file.rfind (ACE_LIB_TEXT ('.'))) != ACE_TString::npos)
{
- base_suffix = base_file.substr (static_cast<size_t>(pos));
- base_file = base_file.substr (0, static_cast<ssize_t>(pos));
+ base_suffix = base_file.substr (pos);
+ base_file = base_file.substr (0, pos);
}
// 3. Build the combinations to try for this platform.