aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-09-11 15:22:19 +0200
committerLukas Larsson <[email protected]>2017-09-11 15:22:19 +0200
commit04541e8aca196dc76ecc585244ee168c37ddeec5 (patch)
tree72251ec28669b06290d2badfa2d5805db5a73e0e /erts/emulator/beam/external.c
parent3b916092c488ef9d1fe93ab9c0afda88d589d97e (diff)
parent8636dcaf22432712a63b26fffe9b0fb0ff451374 (diff)
downloadotp-04541e8aca196dc76ecc585244ee168c37ddeec5.tar.gz
otp-04541e8aca196dc76ecc585244ee168c37ddeec5.tar.bz2
otp-04541e8aca196dc76ecc585244ee168c37ddeec5.zip
Merge branch 'maint'
Conflicts: erts/emulator/sys/unix/sys.c
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index 1c2f8f9843..60cf09dc07 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -1929,7 +1929,7 @@ static Eterm erts_term_to_binary_int(Process* p, Eterm Term, int level, Uint fla
}
result_bin = erts_bin_nrml_alloc(size);
- result_bin->orig_bytes[0] = VERSION_MAGIC;
+ result_bin->orig_bytes[0] = (byte)VERSION_MAGIC;
/* Next state immediately, no need to export context */
context->state = TTBEncode;
context->s.ec.flags = flags;
@@ -1987,7 +1987,7 @@ static Eterm erts_term_to_binary_int(Process* p, Eterm Term, int level, Uint fla
context->s.cc.result_bin = result_bin;
result_bin = erts_bin_nrml_alloc(real_size);
- result_bin->orig_bytes[0] = VERSION_MAGIC;
+ result_bin->orig_bytes[0] = (byte) VERSION_MAGIC;
context->s.cc.destination_bin = result_bin;
context->s.cc.dest_len = 0;