summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--ChangeLogs/ChangeLog-03a8
-rw-r--r--ace/Basic_Types.h3
-rw-r--r--tests/test_config.h4
4 files changed, 20 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d5c06efc105..cb27a2f749f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Fri Jul 12 16:03:22 2002 Steve Huston <shuston@riverace.com>
+
+ * ace/Basic_Types.h: Itanium is little-endian, like x86. Although
+ the Itanium architecture allows big-endian operation, Windows
+ doesn't use it.
+
+ * tests/test_config.h (randomize): Fixed some int/size_t mix-ups.
+
Fri Jul 12 13:02:51 2002 Steve Huston <shuston@riverace.com>
* ace/String_Base.{h i} (rfind): Changed pos argument from size_t to
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index d5c06efc105..cb27a2f749f 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,11 @@
+Fri Jul 12 16:03:22 2002 Steve Huston <shuston@riverace.com>
+
+ * ace/Basic_Types.h: Itanium is little-endian, like x86. Although
+ the Itanium architecture allows big-endian operation, Windows
+ doesn't use it.
+
+ * tests/test_config.h (randomize): Fixed some int/size_t mix-ups.
+
Fri Jul 12 13:02:51 2002 Steve Huston <shuston@riverace.com>
* ace/String_Base.{h i} (rfind): Changed pos argument from size_t to
diff --git a/ace/Basic_Types.h b/ace/Basic_Types.h
index fed623537b0..b2196b2e68e 100644
--- a/ace/Basic_Types.h
+++ b/ace/Basic_Types.h
@@ -617,7 +617,8 @@ typedef unsigned char ACE_Byte;
# else /* ! BYTE_ORDER && ! __BYTE_ORDER */
// We weren't explicitly told, so we have to figure it out . . .
# if defined (i386) || defined (__i386__) || defined (_M_IX86) || \
- defined (vax) || defined (__alpha) || defined (__LITTLE_ENDIAN__) || defined (ARM)
+ defined (vax) || defined (__alpha) || defined (__LITTLE_ENDIAN__) ||\
+ defined (ARM) || defined (_M_IA64)
// We know these are little endian.
# define ACE_LITTLE_ENDIAN 0x0123
# define ACE_BYTE_ORDER ACE_LITTLE_ENDIAN
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;