Use only one pass

This commit is contained in:
dbrotz
2019-05-04 16:18:26 -07:00
parent 6ff9435e0a
commit 23f5e9dacc
12 changed files with 185 additions and 421 deletions

View File

@@ -62,9 +62,6 @@ int32_t charmap_Add(char *input, uint8_t output)
charmap = &globalCharmap;
}
if (nPass == 2)
return charmap->count;
if (charmap->count > MAXCHARMAPS || strlen(input) > CHARMAPLENGTH)
return -1;