rose: eliminate roseSize, use bytecode_ptr size

This commit is contained in:
Justin Viiret
2017-04-05 10:29:22 +10:00
committed by Matthew Barr
parent 820f1432aa
commit 3e5a8c9c90
4 changed files with 2 additions and 9 deletions

View File

@@ -362,7 +362,7 @@ struct hs_database *build(NG &ng, unsigned int *length) {
if (!rose) {
throw CompileError("Unable to generate bytecode.");
}
*length = roseSize(rose.get());
*length = rose.size();
if (!*length) {
DEBUG_PRINTF("RoseEngine has zero length\n");
assert(0);