Permalink
Browse files

Fix the new data_block code.

  • Loading branch information...
1 parent 66109c0 commit 389c75b521cebc7d401a077b9f2d9e4c299edb4f @atrodo committed Dec 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 internal_pmc.c
View
@@ -136,8 +136,8 @@ lorito_datadef_block_new(Lorito_Interp *interp, char *name, int length)
void *data = (void *) malloc(sizeof(Lorito_Opcode) * length);
Lorito_Datadefseg *result = (Lorito_Datadefseg *) malloc(sizeof(Lorito_Datadefseg));
- result->pmc.size = 0;
- result->pmc.internal_type = CONST_BLOCK;
+ result->pmc.size = length;
+ result->pmc.internal_type = DATA_BLOCK;
result->name = name;
result->length = length * sizeof(Lorito_Opcode);
result->data = data;

0 comments on commit 389c75b

Please sign in to comment.