Skip to content

Instantly share code, notes, and snippets.

@mlschroe
Created September 2, 2011 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlschroe/1188987 to your computer and use it in GitHub Desktop.
Save mlschroe/1188987 to your computer and use it in GitHub Desktop.
diff --git a/src/packfile/segments.c b/src/packfile/segments.c
index 1b23287..1339ade 100644
--- a/src/packfile/segments.c
+++ b/src/packfile/segments.c
@@ -708,7 +708,7 @@ PackFile_Annotations_dump(PARROT_INTERP, ARGIN(const PackFile_Segment *seg))
key->type == PF_ANNOTATION_KEY_TYPE_STR ? "string" :
key->type == PF_ANNOTATION_KEY_TYPE_PMC ? "pmc" :
"<ERROR>");
- for (j = key->start; j < key->len; j++) {
+ for (j = key->start; j < key->start + key->len; j++) {
Parrot_io_printf(interp, " [\n", i);
Parrot_io_printf(interp, " BYTECODE_OFFSET => %d\n",
self->base.data[j * 2 + ANN_ENTRY_OFF]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment