diff options
author | Steve Huston <shuston@riverace.com> | 2002-08-27 17:38:26 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-08-27 17:38:26 +0000 |
commit | 7b5a429be6bcb7376736b32d9ef8b632abd3d45e (patch) | |
tree | 975bd4989100178940b9f15c0ad737d40b783b54 /tests/CDR_Array_Test.cpp | |
parent | 85e3f3910c6931831afed75e4593f56309a6f610 (diff) | |
download | ATCD-7b5a429be6bcb7376736b32d9ef8b632abd3d45e.tar.gz |
ChangeLogTag:Tue Aug 27 13:28:17 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests/CDR_Array_Test.cpp')
-rw-r--r-- | tests/CDR_Array_Test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/CDR_Array_Test.cpp b/tests/CDR_Array_Test.cpp index 4ee99fe6d21..d1cb547add3 100644 --- a/tests/CDR_Array_Test.cpp +++ b/tests/CDR_Array_Test.cpp @@ -155,7 +155,7 @@ private: static ACE_UINT32 seal = 0xdeadbeef; void -zero (char* p, int k) +zero (char* p, size_t k) { char* end = p + k; while (p < end) @@ -189,7 +189,7 @@ CDR_Test<T, H>::CDR_Test (int total, int niter, int use_array) char* srcbuf; char* dstbuf; { - const int stotal = + const size_t stotal = (total + 10) * H::size () + sizeof(ACE_UINT32) + ACE_CDR::MAX_ALIGNMENT; ACE_NEW(srcbuf, char[stotal]); @@ -394,7 +394,8 @@ CDR_Test<T, H>::do_test (int total, int niter, int use_array, int n; for (n = 0; n < niter; n++) { - int size = H::size () * (dst_offset + total) + ACE_CDR::MAX_ALIGNMENT; + size_t size = H::size () * (dst_offset + total) + + ACE_CDR::MAX_ALIGNMENT; ACE_OutputCDR os (dstbuf, size); // This is intrusive... @@ -498,7 +499,7 @@ CDR_Test<T, H>::do_test (int total, int niter, int use_array, { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("====== Read iteration %d\n"), n)); - int size = (total + dst_offset) * H::size (); + size_t size = (total + dst_offset) * H::size (); ACE_InputCDR is (toread, size, opposite_byte_order); // This is intrusive... |