Skip to content

Commit

Permalink
erl_interface: Allow erl_match() to match ERL_LONGLONG and ERL_U_LONG…
Browse files Browse the repository at this point in the history
…LONG 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%.
  • Loading branch information
Scott Lystig Fritchie authored and bjorng committed Jan 23, 2010
1 parent fcff652 commit 938ccfe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/erl_interface/src/legacy/erl_eterm.c
Expand Up @@ -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;
Expand Down

0 comments on commit 938ccfe

Please sign in to comment.