diff options
author | R. Blaine Whittle <[email protected]> | 2013-02-19 16:59:48 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-21 18:44:06 +0100 |
commit | 944fca78d202712848e317ec666647e8db78bcb4 (patch) | |
tree | 2acd1f8688bfd644557b18358f59faceb52b416b /erts/emulator/beam/erl_printf_term.c | |
parent | d78e430de1f22ed122d58ad49984ff88a8171b8f (diff) | |
download | otp-944fca78d202712848e317ec666647e8db78bcb4.tar.gz otp-944fca78d202712848e317ec666647e8db78bcb4.tar.bz2 otp-944fca78d202712848e317ec666647e8db78bcb4.zip |
erts: Correct term type for printf %T
Diffstat (limited to 'erts/emulator/beam/erl_printf_term.c')
-rw-r--r-- | erts/emulator/beam/erl_printf_term.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_printf_term.c b/erts/emulator/beam/erl_printf_term.c index 2ec59febcb..ce544503bd 100644 --- a/erts/emulator/beam/erl_printf_term.c +++ b/erts/emulator/beam/erl_printf_term.c @@ -498,10 +498,13 @@ print_term(fmtfn_t fn, void* arg, Eterm obj, long *dcount, } int -erts_printf_term(fmtfn_t fn, void* arg, unsigned long term, long precision, - unsigned long* term_base) +erts_printf_term(fmtfn_t fn, void* arg, ErlPfEterm term, long precision, + ErlPfEterm* term_base) { - int res = print_term(fn, arg, (Eterm)term, &precision, (Eterm*)term_base); + int res; + ASSERT(sizeof(ErlPfEterm) == sizeof(Eterm)); + + res = print_term(fn, arg, (Eterm)term, &precision, (Eterm*)term_base); if (res < 0) return res; if (precision <= 0) |