Skip to content

Commit

Permalink
Fix the new data_block code.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrodo committed Dec 14, 2010
1 parent 66109c0 commit 389c75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal_pmc.c
Expand Up @@ -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;
Expand Down

0 comments on commit 389c75b

Please sign in to comment.