Fossil

Check-in [bff50b17]
Login

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

Overview
Comment:Removed legacy comparison of uint<0 (the type used to be 'long', IIRC). Thanks to Doug C. for the report.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bff50b17eb9fc6c78bf75644f4ee887384b5cac2
User & Date: stephan 2012-07-26 17:27:10.217
Context
2012-07-27
00:00
Fix a faulty (but harmless) initialization in the MD5 code. ... (check-in: ed005e30 user: drh tags: trunk)
2012-07-26
17:27
Removed legacy comparison of uint<0 (the type used to be 'long', IIRC). Thanks to Doug C. for the report. ... (check-in: bff50b17 user: stephan tags: trunk)
2012-07-25
12:05
Allow the setup user to add the chngtime query parameter to ci_edit. This can be used to override incorrect tags that have a date way in the future. ... (check-in: ca72f02c user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/blob.c.
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
  if( whence==BLOB_SEEK_SET ){
    p->iCursor = offset;
  }else if( whence==BLOB_SEEK_CUR ){
    p->iCursor += offset;
  }else if( whence==BLOB_SEEK_END ){
    p->iCursor = p->nUsed + offset - 1;
  }
  if( p->iCursor<0 ){
    p->iCursor = 0;
  }
  if( p->iCursor>p->nUsed ){
    p->iCursor = p->nUsed;
  }
  return p->iCursor;
}

/*







<
<
<







437
438
439
440
441
442
443



444
445
446
447
448
449
450
  if( whence==BLOB_SEEK_SET ){
    p->iCursor = offset;
  }else if( whence==BLOB_SEEK_CUR ){
    p->iCursor += offset;
  }else if( whence==BLOB_SEEK_END ){
    p->iCursor = p->nUsed + offset - 1;
  }



  if( p->iCursor>p->nUsed ){
    p->iCursor = p->nUsed;
  }
  return p->iCursor;
}

/*