Fossil

Check-in [22d7996f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix (not so harmless) gcc compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:22d7996f8c7077aa9795166d25228f8a3e15d797
User & Date: jan.nijtmans 2014-03-27 10:11:12
Context
2014-03-27
10:22
Update to SQLite 3.8.4.2 check-in: cf0b0e50 user: jan.nijtmans tags: trunk
10:11
Fix (not so harmless) gcc compiler warning. check-in: 22d7996f user: jan.nijtmans tags: trunk
2014-03-26
11:58
3 more "full UUID" cases check-in: f46482a9 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/diff.c.

223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  int a = pA->indent, b = pB->indent;
  if( pA->h==pB->h ){
    while( a<pA->n && b<pB->n ){
      if( pA->z[a++] != pB->z[b++] ) return 0;
      while( a<pA->n && fossil_isspace(pA->z[a])) ++a;
      while( b<pB->n && fossil_isspace(pB->z[b])) ++b;
    }
    return pA->n-a == b<pB->n-b;
  }
  return 0;
}

/*
** Return true if the regular expression *pRe matches any of the
** N dlines







|







223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  int a = pA->indent, b = pB->indent;
  if( pA->h==pB->h ){
    while( a<pA->n && b<pB->n ){
      if( pA->z[a++] != pB->z[b++] ) return 0;
      while( a<pA->n && fossil_isspace(pA->z[a])) ++a;
      while( b<pB->n && fossil_isspace(pB->z[b])) ++b;
    }
    return pA->n-a == pB->n-b;
  }
  return 0;
}

/*
** Return true if the regular expression *pRe matches any of the
** N dlines