summaryrefslogtreecommitdiff
path: root/ace/SString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SString.cpp')
-rw-r--r--ace/SString.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ace/SString.cpp b/ace/SString.cpp
index a8269f6362e..47c52efcf68 100644
--- a/ace/SString.cpp
+++ b/ace/SString.cpp
@@ -108,10 +108,7 @@ ACE_CString::ACE_CString (const ACE_USHORT16 *s, ACE_Allocator *alloc)
// Copy the ACE_USHORT16 * string byte-by-byte into the char *
// string.
for (size_t i = 0; i < this->len_; i++)
-#pragma warning(disable: 4244) /* Possible loss of data */
- this->rep_[i] = (ACE_USHORT16) s[i];
-#pragma warning(default: 4244) /* Possible loss of data */
-
+ this->rep_[i] = char (s[i]);
this->rep_[this->len_] = '\0';
}
}