[svn:parrot] r47751 - branches/dynop_mapping/src
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Tue Jun 22 04:58:44 UTC 2010
Author: plobsing
Date: Tue Jun 22 04:58:43 2010
New Revision: 47751
URL: https://trac.parrot.org/parrot/changeset/47751
Log:
off by one error
Modified:
branches/dynop_mapping/src/packfile.c
Modified: branches/dynop_mapping/src/packfile.c
==============================================================================
--- branches/dynop_mapping/src/packfile.c Tue Jun 22 02:01:27 2010 (r47750)
+++ branches/dynop_mapping/src/packfile.c Tue Jun 22 04:58:43 2010 (r47751)
@@ -2663,7 +2663,7 @@
size_t size;
int i;
- size = 1; /* n_libs */
+ size = 2; /* op_count + n_libs */
for (i = 0; i < byte_code->op_mapping.n_libs; i++) {
PackFile_ByteCode_OpMappingEntry * const entry = &byte_code->op_mapping.libs[i];
@@ -2673,7 +2673,7 @@
size += 3; /* major + minor + patch */
/* op entries */
- size += 1; /* n_ops */
+ size += 1; /* n_ops */
size += entry->n_ops * 2; /* lib_ops and table_ops */
}
More information about the parrot-commits
mailing list