Fossil SCM
Removed legacy comparison of uint<0 (the type used to be 'long', IIRC). Thanks to Doug C. for the report.
Commit
bff50b17eb9fc6c78bf75644f4ee887384b5cac2
Parent
ca72f02c9b7b2c8…
1 file changed
-3
-3
| --- src/blob.c | ||
| +++ src/blob.c | ||
| @@ -439,13 +439,10 @@ | ||
| 439 | 439 | }else if( whence==BLOB_SEEK_CUR ){ |
| 440 | 440 | p->iCursor += offset; |
| 441 | 441 | }else if( whence==BLOB_SEEK_END ){ |
| 442 | 442 | p->iCursor = p->nUsed + offset - 1; |
| 443 | 443 | } |
| 444 | - if( p->iCursor<0 ){ | |
| 445 | - p->iCursor = 0; | |
| 446 | - } | |
| 447 | 444 | if( p->iCursor>p->nUsed ){ |
| 448 | 445 | p->iCursor = p->nUsed; |
| 449 | 446 | } |
| 450 | 447 | return p->iCursor; |
| 451 | 448 | } |
| 452 | 449 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -439,13 +439,10 @@ | |
| 439 | }else if( whence==BLOB_SEEK_CUR ){ |
| 440 | p->iCursor += offset; |
| 441 | }else if( whence==BLOB_SEEK_END ){ |
| 442 | p->iCursor = p->nUsed + offset - 1; |
| 443 | } |
| 444 | if( p->iCursor<0 ){ |
| 445 | p->iCursor = 0; |
| 446 | } |
| 447 | if( p->iCursor>p->nUsed ){ |
| 448 | p->iCursor = p->nUsed; |
| 449 | } |
| 450 | return p->iCursor; |
| 451 | } |
| 452 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -439,13 +439,10 @@ | |
| 439 | }else if( whence==BLOB_SEEK_CUR ){ |
| 440 | p->iCursor += offset; |
| 441 | }else if( whence==BLOB_SEEK_END ){ |
| 442 | p->iCursor = p->nUsed + offset - 1; |
| 443 | } |
| 444 | if( p->iCursor>p->nUsed ){ |
| 445 | p->iCursor = p->nUsed; |
| 446 | } |
| 447 | return p->iCursor; |
| 448 | } |
| 449 |