summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-10-21 22:24:54 +0000
committerSteve Huston <shuston@riverace.com>2004-10-21 22:24:54 +0000
commit01a53069f6130fddd0e05996d5d88024e4ec03b2 (patch)
tree4448bd5c63b65c522fbc2af53f73b3bd2c72f8df /ASNMP
parentf7ca4c0854cf94c6bf5e69b8d5a919795a2d9f6c (diff)
downloadATCD-01a53069f6130fddd0e05996d5d88024e4ec03b2.tar.gz
ChangeLogTag:Thu Oct 21 18:23:19 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ASNMP')
-rw-r--r--ASNMP/tests/test_config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ASNMP/tests/test_config.h b/ASNMP/tests/test_config.h
index 98d55469a0f..887fa5cec8a 100644
--- a/ASNMP/tests/test_config.h
+++ b/ASNMP/tests/test_config.h
@@ -180,7 +180,7 @@ randomize (int array[], size_t size)
size_t i;
for (i = 0; i < size; i++)
- array [i] = i;
+ array [i] = static_cast<int> (i);
ACE_OS::srand (ACE_OS::time (0L));
@@ -188,7 +188,8 @@ randomize (int array[], size_t size)
for (i = 0; i < size; i++)
{
- int index = ACE_OS::rand() % size--;
+ int index = ACE_OS::rand() % static_cast<int> (size);
+ --size;
int temp = array [index];
array [index] = array [size];
array [size] = temp;