You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/06/22 16:22:02 UTC
cvs commit: xml-xerces/c/tests/ThreadTest ThreadTest.cpp
tng 01/06/22 07:22:01
Modified: c/tests/IThreadTest IThreadTest.cpp
c/tests/ThreadTest ThreadTest.cpp
Log:
[Bug 2225] assignment vs. comparison in if clause.
Revision Changes Path
1.4 +2 -2 xml-xerces/c/tests/IThreadTest/IThreadTest.cpp
Index: IThreadTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/IThreadTest/IThreadTest.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IThreadTest.cpp 2001/06/05 19:43:18 1.3
+++ IThreadTest.cpp 2001/06/22 14:21:56 1.4
@@ -55,7 +55,7 @@
*/
/*
-* $Id: IThreadTest.cpp,v 1.3 2001/06/05 19:43:18 tng Exp $
+* $Id: IThreadTest.cpp,v 1.4 2001/06/22 14:21:56 tng Exp $
*/
#include <stdlib.h>
@@ -445,7 +445,7 @@
//
void ThreadParser::addToCheckSum(const XMLCh *chars, int len)
{
- if (len = -1)
+ if (len == -1)
{
// Null terminated string.
while (*chars != 0)
1.12 +2 -2 xml-xerces/c/tests/ThreadTest/ThreadTest.cpp
Index: ThreadTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/ThreadTest/ThreadTest.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ThreadTest.cpp 2001/05/11 17:26:43 1.11
+++ ThreadTest.cpp 2001/06/22 14:22:00 1.12
@@ -55,7 +55,7 @@
*/
/*
- * $Id: ThreadTest.cpp,v 1.11 2001/05/11 17:26:43 lehors Exp $
+ * $Id: ThreadTest.cpp,v 1.12 2001/06/22 14:22:00 tng Exp $
*
* @author Andy Heninger, IBM
*/
@@ -415,7 +415,7 @@
//
void ThreadParser::addToCheckSum(const XMLCh *chars, int len)
{
- if (len = -1)
+ if (len == -1)
{
// Null terminated string.
while (*chars != 0)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org