aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_term.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-05-18 19:25:09 +0200
committerSverker Eriksson <[email protected]>2015-05-18 19:26:27 +0200
commite5899f39d043409e2a48f34c845ad28cad8a28e6 (patch)
treeb2aab6f99da9194b02a2c08da94f8d34173d7bbf /erts/emulator/beam/erl_term.c
parentd909a5c2cad677e3c6accee9ef1515584d2f4be5 (diff)
downloadotp-e5899f39d043409e2a48f34c845ad28cad8a28e6.tar.gz
otp-e5899f39d043409e2a48f34c845ad28cad8a28e6.tar.bz2
otp-e5899f39d043409e2a48f34c845ad28cad8a28e6.zip
erts: Fix warning about const pointer to make_boxed and make_list
Diffstat (limited to 'erts/emulator/beam/erl_term.c')
-rw-r--r--erts/emulator/beam/erl_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_term.c b/erts/emulator/beam/erl_term.c
index bc04d7b78e..565528193e 100644
--- a/erts/emulator/beam/erl_term.c
+++ b/erts/emulator/beam/erl_term.c
@@ -128,10 +128,10 @@ FUNTY checked_##FUN(ARGTY x, const char *file, unsigned line) \
return _unchecked_##FUN(x); \
}
-ET_DEFINE_CHECKED(Eterm,make_boxed,Eterm*,_is_taggable_pointer);
+ET_DEFINE_CHECKED(Eterm,make_boxed,const Eterm*,_is_taggable_pointer);
ET_DEFINE_CHECKED(int,is_boxed,Eterm,!is_header);
ET_DEFINE_CHECKED(Eterm*,boxed_val,Wterm,_boxed_precond);
-ET_DEFINE_CHECKED(Eterm,make_list,Eterm*,_is_taggable_pointer);
+ET_DEFINE_CHECKED(Eterm,make_list,const Eterm*,_is_taggable_pointer);
ET_DEFINE_CHECKED(int,is_not_list,Eterm,!is_header);
ET_DEFINE_CHECKED(Eterm*,list_val,Wterm,_list_precond);
ET_DEFINE_CHECKED(Uint,unsigned_val,Eterm,is_small);