You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Andrei Smirnov <as...@hotjobs.com> on 2000/10/14 00:31:27 UTC
build break on solaris-gcc-2.95.2
hi
i've got minor build break on latest xalan, patch below.
problem is scope of variable defined in the for loop header.
patch fixes that for both ANSI and non-ANSI treatment of such
vars.
andrei
============================================================
Index: c/src/XSLT/Stylesheet.cpp
===================================================================
RCS file: /home/cvspublic/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
retrieving revision 1.39
diff -u -r1.39 Stylesheet.cpp
--- c/src/XSLT/Stylesheet.cpp 2000/10/12 17:07:48 1.39
+++ c/src/XSLT/Stylesheet.cpp 2000/10/13 22:16:38
@@ -907,7 +907,8 @@
const PatternTableVectorType::size_type n =
theVector.size();
- for(PatternTableVectorType::size_type i = 0; i < n; i++)
+ PatternTableVectorType::size_type i;
+ for(i = 0; i < n; i++)
{
if(theVector[i] == thePattern)
{