diff options
author | Steve Huston <shuston@riverace.com> | 2004-10-21 22:24:54 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-10-21 22:24:54 +0000 |
commit | d503221b7d3d14f7634fe80f76b380a67d4c0058 (patch) | |
tree | 4448bd5c63b65c522fbc2af53f73b3bd2c72f8df /ASNMP | |
parent | 88ef21b579e9722b7a387fe044f9e4b511f466cc (diff) | |
download | ATCD-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.h | 5 |
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; |