aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-02-25 15:08:10 +0100
committerSverker Eriksson <[email protected]>2013-02-25 15:08:10 +0100
commit79af83c9903432e68fbe233a2b4f5fe7ea7278b1 (patch)
treebf89bcac8f019129690aa559fdb4367e62f28650 /erts/emulator
parentdf465d70c5e7833a393fea02eabf477bbe6c542b (diff)
downloadotp-79af83c9903432e68fbe233a2b4f5fe7ea7278b1.tar.gz
otp-79af83c9903432e68fbe233a2b4f5fe7ea7278b1.tar.bz2
otp-79af83c9903432e68fbe233a2b4f5fe7ea7278b1.zip
erts: Fix crash on halfword and code_SUITE:big_boot_embedded
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 81c1ea749a..bd4e5a52d0 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -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;
@@ -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,