summaryrefslogtreecommitdiff
path: root/ACE/tests/Bug_3943_Regression_Test.cpp
diff options
context:
space:
mode:
authorsma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-15 14:10:34 +0000
committersma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-15 14:10:34 +0000
commit7b2e63e26ff89595371ee8285fc4dc5c2f010902 (patch)
tree8613d3f84f20828f791c010a36c7f4879d5f7cdf /ACE/tests/Bug_3943_Regression_Test.cpp
parentfd6955d9b55df7de953a44f9ab8994669de00f3c (diff)
downloadATCD-7b2e63e26ff89595371ee8285fc4dc5c2f010902.tar.gz
Wed Aug 15 14:10:00 UTC 2012 Simon Massey <sma at prismtech dot com>
test/Bug_3911_Regression_Test.cpp, Bug_3943_Regression_Test.cpp: Some compilers warning against ordering pointers with integers.
Diffstat (limited to 'ACE/tests/Bug_3943_Regression_Test.cpp')
-rw-r--r--ACE/tests/Bug_3943_Regression_Test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/tests/Bug_3943_Regression_Test.cpp b/ACE/tests/Bug_3943_Regression_Test.cpp
index 03e6d102e27..4935f36eb92 100644
--- a/ACE/tests/Bug_3943_Regression_Test.cpp
+++ b/ACE/tests/Bug_3943_Regression_Test.cpp
@@ -837,7 +837,7 @@ Svc_Handler::recv_data (void)
{
const char* restartLoc =
ACE_OS::strchr(partOfBufferStart, RESTART_CHAR);
- if ((restartLoc > 0) && (restartLoc < partOfBufferEnd))
+ if (restartLoc && (restartLoc < partOfBufferEnd))
{
++messages;
total_bytes_since_last_message = 0;