Changeset 11240


Ignore:
Timestamp:
09/17/07 16:57:19 (16 years ago)
Author:
piso
Message:

one arg minus calls arg.negate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Primitives.java

    r11158 r11240  
    33 *
    44 * Copyright (C) 2002-2007 Peter Graves
    5  * $Id: Primitives.java,v 1.879 2007-02-23 21:17:34 piso Exp $
     5 * $Id: Primitives.java,v 1.880 2007-09-17 16:57:19 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    1717 * You should have received a copy of the GNU General Public License
    1818 * along with this program; if not, write to the Free Software
    19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2020 */
    2121
     
    641641      public LispObject execute(LispObject arg) throws ConditionThrowable
    642642      {
    643         return Fixnum.ZERO.subtract(arg);
     643        return arg.negate();
    644644      }
    645645      public LispObject execute(LispObject first, LispObject second)
Note: See TracChangeset for help on using the changeset viewer.