diff options
author | Steve Huston <shuston@riverace.com> | 2002-07-12 20:06:45 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-07-12 20:06:45 +0000 |
commit | 1a263e3fef34bb1ff84542f3b2b19ced1f2b59b1 (patch) | |
tree | ae4b4d26993886ff51bb825f4b8e0fb39386b207 /tests/test_config.h | |
parent | 8b003c83fd22954f781cca6a3a9a4e5bd351a01e (diff) | |
download | ATCD-1a263e3fef34bb1ff84542f3b2b19ced1f2b59b1.tar.gz |
ChangeLogTag:Fri Jul 12 16:03:22 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests/test_config.h')
-rw-r--r-- | tests/test_config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_config.h b/tests/test_config.h index b5e4f5b826d..712dc793b68 100644 --- a/tests/test_config.h +++ b/tests/test_config.h @@ -291,7 +291,7 @@ randomize (int array[], size_t size) size_t i; for (i = 0; i < size; i++) - array [i] = i; + array [i] = ACE_static_cast (int, i); // See with a fixed number so that we can produce "repeatable" // random numbers. @@ -301,7 +301,7 @@ randomize (int array[], size_t size) for (i = 0; i < size; i++) { - int index = ACE_OS::rand() % size--; + size_t index = ACE_OS::rand() % size--; int temp = array [index]; array [index] = array [size]; array [size] = temp; |