Changes between Initial Version and Version 2 of Ticket #92


Ignore:
Timestamp:
Nov 21, 2007, 2:22:52 PM (17 years ago)
Author:
mloskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #92

    • Property Reporter changed from mateusz@… to mloskot
  • Ticket #92 – Description

    initial v2  
    1 {{{
    21g++ with -pedantic option reports following warning that may significantly influence logic of this code:
    32
     3{{{
    44/home/mloskot/dev/geos/_cvs/geos/tests/xmltester/markup/MarkupSTL.cpp:884: warning: comparison is always true due to limited range of data type
     5}}}
    56
    67Here is this comparison:
     8{{{
    79int nEndCDATA = m_strDoc.find( "]]>",
    810                  token.nNext );
    911if ( (unsigned int)nEndCDATA != string::npos
    10 &amp;&amp; nEndCDATA < m_aPos[iPos].nEndL )
     12&& nEndCDATA < m_aPos[iPos].nEndL )
    1113{
    1214   return m_strDoc.substr(token.nL+9,