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
commitd503221b7d3d14f7634fe80f76b380a67d4c0058 (patch)
tree4448bd5c63b65c522fbc2af53f73b3bd2c72f8df /ASNMP
parent88ef21b579e9722b7a387fe044f9e4b511f466cc (diff)
downloadATCD-d503221b7d3d14f7634fe80f76b380a67d4c0058.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;