Skip to content

Commit

Permalink
Merge branch 'sf/erl_match-longlong' into ccase/r13b04_dev
Browse files Browse the repository at this point in the history
* sf/erl_match-longlong:
  erl_interface: Allow erl_match() to match ERL_LONGLONG and ERL_U_LONGLONG terms

OTP-8400  Allow erl_match() to match ERL_LONGLONG and ERL_U_LONGLONG terms
          (Thanks to Scott Lystig Fritchie).
  • Loading branch information
Erlang/OTP committed Feb 2, 2010
2 parents 921925b + 938ccfe commit f9fef81
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/erl_interface/src/legacy/erl_eterm.c
@@ -1,19 +1,19 @@
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2009. All Rights Reserved.
*
*
* Copyright Ericsson AB 1996-2010. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlang Public License along with this software. If not, it can be
* retrieved online at http://www.erlang.org/.
*
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
*
* %CopyrightEnd%
*/
/*
Expand Down 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 f9fef81

Please sign in to comment.