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 | 01a53069f6130fddd0e05996d5d88024e4ec03b2 (patch) | |
tree | 4448bd5c63b65c522fbc2af53f73b3bd2c72f8df /ASNMP | |
parent | f7ca4c0854cf94c6bf5e69b8d5a919795a2d9f6c (diff) | |
download | ATCD-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.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; |