Fossil SCM
Collapse two memset's into one. Typo in mkdownload.tcl
Commit
5f88968404002b742c7012c18be84bf415645164
Parent
f47b7052c660f95…
2 files changed
+1
-2
+2
-2
+1
-2
| --- src/delta.c | ||
| +++ src/delta.c | ||
| @@ -377,13 +377,12 @@ | ||
| 377 | 377 | /* Compute the hash table used to locate matching sections in the |
| 378 | 378 | ** source file. |
| 379 | 379 | */ |
| 380 | 380 | nHash = lenSrc/NHASH; |
| 381 | 381 | collide = fossil_malloc( nHash*2*sizeof(int) ); |
| 382 | + memset(collide, -1, nHash*2*sizeof(int)); | |
| 382 | 383 | landmark = &collide[nHash]; |
| 383 | - memset(landmark, -1, nHash*sizeof(int)); | |
| 384 | - memset(collide, -1, nHash*sizeof(int)); | |
| 385 | 384 | for(i=0; i<lenSrc-NHASH; i+=NHASH){ |
| 386 | 385 | int hv = hash_once(&zSrc[i]) % nHash; |
| 387 | 386 | collide[i/NHASH] = landmark[hv]; |
| 388 | 387 | landmark[hv] = i/NHASH; |
| 389 | 388 | } |
| 390 | 389 |
| --- src/delta.c | |
| +++ src/delta.c | |
| @@ -377,13 +377,12 @@ | |
| 377 | /* Compute the hash table used to locate matching sections in the |
| 378 | ** source file. |
| 379 | */ |
| 380 | nHash = lenSrc/NHASH; |
| 381 | collide = fossil_malloc( nHash*2*sizeof(int) ); |
| 382 | landmark = &collide[nHash]; |
| 383 | memset(landmark, -1, nHash*sizeof(int)); |
| 384 | memset(collide, -1, nHash*sizeof(int)); |
| 385 | for(i=0; i<lenSrc-NHASH; i+=NHASH){ |
| 386 | int hv = hash_once(&zSrc[i]) % nHash; |
| 387 | collide[i/NHASH] = landmark[hv]; |
| 388 | landmark[hv] = i/NHASH; |
| 389 | } |
| 390 |
| --- src/delta.c | |
| +++ src/delta.c | |
| @@ -377,13 +377,12 @@ | |
| 377 | /* Compute the hash table used to locate matching sections in the |
| 378 | ** source file. |
| 379 | */ |
| 380 | nHash = lenSrc/NHASH; |
| 381 | collide = fossil_malloc( nHash*2*sizeof(int) ); |
| 382 | memset(collide, -1, nHash*2*sizeof(int)); |
| 383 | landmark = &collide[nHash]; |
| 384 | for(i=0; i<lenSrc-NHASH; i+=NHASH){ |
| 385 | int hv = hash_once(&zSrc[i]) % nHash; |
| 386 | collide[i/NHASH] = landmark[hv]; |
| 387 | landmark[hv] = i/NHASH; |
| 388 | } |
| 389 |
+2
-2
| --- www/mkdownload.tcl | ||
| +++ www/mkdownload.tcl | ||
| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | #!/usr/bin/tclsh |
| 2 | 2 | # |
| 3 | -# Run this script to build andn install the "download.html" page of | |
| 4 | -# unversioned comment. | |
| 3 | +# Run this script to build and install the "download.html" page of | |
| 4 | +# unversioned comment. | |
| 5 | 5 | # |
| 6 | 6 | # Also generate the fossil_download_checksums.html page. |
| 7 | 7 | # |
| 8 | 8 | # |
| 9 | 9 | set out [open download.html w] |
| 10 | 10 |
| --- www/mkdownload.tcl | |
| +++ www/mkdownload.tcl | |
| @@ -1,9 +1,9 @@ | |
| 1 | #!/usr/bin/tclsh |
| 2 | # |
| 3 | # Run this script to build andn install the "download.html" page of |
| 4 | # unversioned comment. |
| 5 | # |
| 6 | # Also generate the fossil_download_checksums.html page. |
| 7 | # |
| 8 | # |
| 9 | set out [open download.html w] |
| 10 |
| --- www/mkdownload.tcl | |
| +++ www/mkdownload.tcl | |
| @@ -1,9 +1,9 @@ | |
| 1 | #!/usr/bin/tclsh |
| 2 | # |
| 3 | # Run this script to build and install the "download.html" page of |
| 4 | # unversioned comment. |
| 5 | # |
| 6 | # Also generate the fossil_download_checksums.html page. |
| 7 | # |
| 8 | # |
| 9 | set out [open download.html w] |
| 10 |