diff options
author | Lukas Larsson <[email protected]> | 2017-09-04 13:21:02 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-09-11 15:20:51 +0200 |
commit | 9b085b7f6d7dddcb83924c4fa50e18e8aec3c74d (patch) | |
tree | 7893dcf0e5e78792be2178ee6d5e46fe39aab0e8 | |
parent | 6eae9b508dc172ca207df6131bfa36e2aaf2333f (diff) | |
download | otp-9b085b7f6d7dddcb83924c4fa50e18e8aec3c74d.tar.gz otp-9b085b7f6d7dddcb83924c4fa50e18e8aec3c74d.tar.bz2 otp-9b085b7f6d7dddcb83924c4fa50e18e8aec3c74d.zip |
Fix some clang warnings
-rw-r--r-- | erts/emulator/beam/external.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c index 1560844521..c0a3838d42 100644 --- a/erts/emulator/beam/external.c +++ b/erts/emulator/beam/external.c @@ -1923,7 +1923,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; @@ -1981,7 +1981,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; |