summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/binary.c
diff options
context:
space:
mode:
authorJohn Högberg <john@erlang.org>2021-10-11 23:50:29 +0200
committerJohn Högberg <john@erlang.org>2021-10-22 14:47:03 +0200
commitf33aafd6dd627a757b4c631dea6a4e43d9f69a58 (patch)
tree0030c9a814fc18f18a2ef56d585a1375a442c976 /erts/emulator/beam/binary.c
parent0a5acf999432375e75beac3597b0da568758193b (diff)
downloaderlang-f33aafd6dd627a757b4c631dea6a4e43d9f69a58.tar.gz
erts: Keep literal lists in the line table
This saves us from having to convert them to lists on the fly at runtime, which is extremely annoying because of the special case for "module_name.erl" This also means that file paths can be arbitrarily long in the future.
Diffstat (limited to 'erts/emulator/beam/binary.c')
-rw-r--r--erts/emulator/beam/binary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/binary.c b/erts/emulator/beam/binary.c
index 39ca0827ca..a006553ef3 100644
--- a/erts/emulator/beam/binary.c
+++ b/erts/emulator/beam/binary.c
@@ -241,7 +241,7 @@ erts_get_aligned_binary_bytes_extra(Eterm bin, byte** base_ptr, ErtsAlcType_t al
}
Eterm
-erts_bin_bytes_to_list(Eterm previous, Eterm* hp, byte* bytes, Uint size, Uint bitoffs)
+erts_bin_bytes_to_list(Eterm previous, Eterm* hp, const byte* bytes, Uint size, Uint bitoffs)
{
if (bitoffs == 0) {
while (size) {