aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/legacy/erl_eterm.c
diff options
context:
space:
mode:
authorScott Lystig Fritchie <[email protected]>2010-01-20 18:47:00 +0900
committerBjörn Gustavsson <[email protected]>2010-01-23 09:57:30 +0100
commit938ccfe9c937c7d7716bb3f4fa17264ab03a240b (patch)
tree37e3b508cf206a48afa81bdcc76369877ad5753d /lib/erl_interface/src/legacy/erl_eterm.c
parentfcff652f0fc9d19157e6f72f2c864533bf0c0d28 (diff)
downloadotp-938ccfe9c937c7d7716bb3f4fa17264ab03a240b.tar.gz
otp-938ccfe9c937c7d7716bb3f4fa17264ab03a240b.tar.bz2
otp-938ccfe9c937c7d7716bb3f4fa17264ab03a240b.zip
erl_interface: Allow erl_match() to match ERL_LONGLONG and ERL_U_LONGLONG terms
The Erlang/OTP distro now includes 90% of what's required to handle signed and unsigned ints up to 8 bytes long, so add this remaining (?) 10%.
Diffstat (limited to 'lib/erl_interface/src/legacy/erl_eterm.c')
-rw-r--r--lib/erl_interface/src/legacy/erl_eterm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/erl_interface/src/legacy/erl_eterm.c b/lib/erl_interface/src/legacy/erl_eterm.c
index b685709c02..e573cafcb2 100644
--- a/lib/erl_interface/src/legacy/erl_eterm.c
+++ b/lib/erl_interface/src/legacy/erl_eterm.c
@@ -786,6 +786,12 @@ ETERM *erl_copy_term(const ETERM *ep)
case ERL_U_SMALL_BIG:
ERL_INT_UVALUE(cp) = ERL_INT_UVALUE(ep);
break;
+ case ERL_LONGLONG:
+ ERL_LL_VALUE(cp) = ERL_LL_VALUE(ep);
+ break;
+ case ERL_U_LONGLONG:
+ ERL_LL_UVALUE(cp) = ERL_LL_UVALUE(ep);
+ break;
case ERL_FLOAT:
ERL_FLOAT_VALUE(cp) = ERL_FLOAT_VALUE(ep);
break;