fdr/teddy: store and dump number of strings

This commit is contained in:
Justin Viiret
2017-06-23 16:32:10 +10:00
committed by Matthew Barr
parent a17ef3e48a
commit e4788aae1a
5 changed files with 6 additions and 2 deletions

View File

@@ -520,6 +520,7 @@ bytecode_ptr<FDR> TeddyCompiler::build() {
teddy->size = size;
teddy->engineID = eng.getID();
teddy->maxStringLen = verify_u32(maxLen(lits));
teddy->numStrings = verify_u32(lits.size());
// Write confirm structures.
u8 *ptr = teddy_base + ROUNDUP_CL(headerSize) + ROUNDUP_CL(maskLen) +