summaryrefslogtreecommitdiff
path: root/tests/Priority_Buffer_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Priority_Buffer_Test.cpp')
-rw-r--r--tests/Priority_Buffer_Test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Priority_Buffer_Test.cpp b/tests/Priority_Buffer_Test.cpp
index 3a1134c63a2..7fe6d7cd33a 100644
--- a/tests/Priority_Buffer_Test.cpp
+++ b/tests/Priority_Buffer_Test.cpp
@@ -94,14 +94,14 @@ producer (void *args)
ACE_Message_Block *mb = 0;
- for (char c = 'a'; c <= 'z'; c++)
+ for (char *c = ACE_ALPHABET; *c != '\0'; c++)
{
count++;
// Allocate a new message
ACE_NEW_RETURN (mb, ACE_Message_Block (1), 0);
- *mb->rd_ptr () = c;
+ *mb->rd_ptr () = *c;
// Set the priority.
mb->msg_priority (count);