diff options
author | Paul Guyot <[email protected]> | 2010-06-04 10:14:00 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-06-07 13:46:33 +0200 |
commit | 8215a7a3eea8f36532ceac31e48fbc6337cb9a8b (patch) | |
tree | 385bbedff0000b5fec4a853e97a86c6669e257e5 /erts/emulator/beam | |
parent | 707c6510597e5eb6e32b88412edd717e0e3c39ba (diff) | |
download | otp-8215a7a3eea8f36532ceac31e48fbc6337cb9a8b.tar.gz otp-8215a7a3eea8f36532ceac31e48fbc6337cb9a8b.tar.bz2 otp-8215a7a3eea8f36532ceac31e48fbc6337cb9a8b.zip |
Fix erts_bld_string_n (called by enif_make_string and erlang:decode_packet/3) to work with 8 bits characters
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c index 445a8eebd9..da6f9ed12f 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -510,7 +510,7 @@ erts_bld_string_n(Uint **hpp, Uint *szp, const char *str, Sint len) if (hpp) { res = NIL; while (--i >= 0) { - res = CONS(*hpp, make_small(str[i]), res); + res = CONS(*hpp, make_small((byte) str[i]), res); *hpp += 2; } } |