diff options
Diffstat (limited to 'ACE/tests/Map_Test.h')
-rw-r--r-- | ACE/tests/Map_Test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Map_Test.h b/ACE/tests/Map_Test.h index 39b4db9b682..276f5ab6325 100644 --- a/ACE/tests/Map_Test.h +++ b/ACE/tests/Map_Test.h @@ -53,7 +53,7 @@ public: size_t original_size = key.size (); // Size of this counter key. - size_t counter_key_size = sizeof this->counter_; + const size_t counter_key_size = sizeof this->counter_; // Resize to accommodate both the original data and the new key. key.size (counter_key_size + original_size); @@ -61,7 +61,7 @@ public: // Add new key data. ACE_OS::memcpy (&key[original_size], &++this->counter_, - sizeof this->counter_); + counter_key_size); // Success. return 0; |