From: David Schleef Date: Thu, 26 Aug 2010 01:37:30 +0000 (-0700) Subject: compiler: allocate correct size for code memory X-Git-Tag: orc-0.4.8~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b25dd26ed15dca07da0f5c371d6766c1a47c371b;p=platform%2Fupstream%2Forc.git compiler: allocate correct size for code memory --- diff --git a/orc/orccompiler.c b/orc/orccompiler.c index 2f6201a..acfda58 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -328,8 +328,8 @@ orc_program_compile_full (OrcProgram *program, OrcTarget *target, goto error; } - orc_code_allocate_codemem (program->orccode, program->orccode->code_size); program->orccode->code_size = compiler->codeptr - compiler->code; + orc_code_allocate_codemem (program->orccode, program->orccode->code_size); memcpy (program->orccode->code, compiler->code, program->orccode->code_size);