aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorPaul Guyot <[email protected]>2010-06-04 10:14:00 +0200
committerRaimo Niskanen <[email protected]>2010-06-07 13:46:33 +0200
commit8215a7a3eea8f36532ceac31e48fbc6337cb9a8b (patch)
tree385bbedff0000b5fec4a853e97a86c6669e257e5 /erts/emulator/beam/utils.c
parent707c6510597e5eb6e32b88412edd717e0e3c39ba (diff)
downloadotp-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/utils.c')
-rw-r--r--erts/emulator/beam/utils.c2
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;
}
}