Skip to content

Commit

Permalink
erts: Fix crash on halfword and code_SUITE:big_boot_embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
sverker committed Feb 25, 2013
1 parent df465d7 commit 79af83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erts/emulator/beam/beam_load.c
Expand Up @@ -205,7 +205,7 @@ typedef struct {
typedef struct {
Eterm term; /* The tagged term (in the heap). */
Uint heap_size; /* (Exact) size on the heap. */
Uint offset; /* Offset from temporary location to final. */
SWord offset; /* Offset from temporary location to final. */
ErlOffHeap off_heap; /* Start of linked list of ProcBins. */
Eterm* heap; /* Heap for term. */
} Literal;
Expand Down Expand Up @@ -4045,7 +4045,7 @@ freeze_code(LoaderState* stp)
code[MI_LITERALS_END] = (BeamInstr) high;
ptr = low;
for (i = 0; i < stp->num_literals; i++) {
Uint offset;
SWord offset;
struct erl_off_heap_header* t_off_heap;

sys_memcpy(ptr, stp->literals[i].heap,
Expand Down

0 comments on commit 79af83c

Please sign in to comment.