Fossil SCM

Collapse two memset's into one. Typo in mkdownload.tcl

jan.nijtmans 2016-11-02 10:22 trunk
Commit 5f88968404002b742c7012c18be84bf415645164
2 files changed +1 -2 +2 -2
+1 -2
--- src/delta.c
+++ src/delta.c
@@ -377,13 +377,12 @@
377377
/* Compute the hash table used to locate matching sections in the
378378
** source file.
379379
*/
380380
nHash = lenSrc/NHASH;
381381
collide = fossil_malloc( nHash*2*sizeof(int) );
382
+ memset(collide, -1, nHash*2*sizeof(int));
382383
landmark = &collide[nHash];
383
- memset(landmark, -1, nHash*sizeof(int));
384
- memset(collide, -1, nHash*sizeof(int));
385384
for(i=0; i<lenSrc-NHASH; i+=NHASH){
386385
int hv = hash_once(&zSrc[i]) % nHash;
387386
collide[i/NHASH] = landmark[hv];
388387
landmark[hv] = i/NHASH;
389388
}
390389
--- 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
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -1,9 +1,9 @@
11
#!/usr/bin/tclsh
22
#
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.
55
#
66
# Also generate the fossil_download_checksums.html page.
77
#
88
#
99
set out [open download.html w]
1010
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button