Browse code

don't count lsig associated with bc

Tomasz Kojm authored on 2010/02/03 01:13:44
Showing 2 changed files
... ...
@@ -1356,7 +1356,7 @@ static int cli_loadcbc(FILE *fs, struct cl_engine *engine, unsigned int *signo,
1356 1356
 	return rc;
1357 1357
     }
1358 1358
     bc->id = bcs->count;/* must set after _load, since load zeroes */
1359
-    sigs += 2;/* the bytecode itself and the logical sig */
1359
+    sigs++;
1360 1360
     if (bc->kind == BC_LOGICAL || bc->lsig) {
1361 1361
 	if (!bc->lsig) {
1362 1362
 	    cli_errmsg("Bytecode %s has logical kind, but missing logical signature!\n", dbname);
... ...
@@ -707,7 +707,7 @@ static int build(const struct optstruct *opts)
707 707
 			}
708 708
 			lspt->next = dblist2;
709 709
 			dblist2 = lspt;
710
-			entries += 2; /* bytecode + lsig */
710
+			entries++;
711 711
 		    }
712 712
 		}
713 713
 	    }