Changeset 3545


Ignore:
Timestamp:
09/02/03 04:35:29 (20 years ago)
Author:
piso
Message:

add()

File:
1 edited

Legend:

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

    r3537 r3545  
    33 *
    44 * Copyright (C) 2003 Peter Graves
    5  * $Id: Bignum.java,v 1.28 2003-08-27 16:14:52 piso Exp $
     5 * $Id: Bignum.java,v 1.29 2003-09-02 04:35:29 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    154154    {
    155155        if (obj instanceof Fixnum)
    156             return new Bignum(value.add(Fixnum.getBigInteger(obj)));
    157         if (obj instanceof Bignum)
    158             return new Bignum(value.add(((Bignum)obj).value));
     156            return number(value.add(Fixnum.getBigInteger(obj)));
     157        if (obj instanceof Bignum)
     158            return number(value.add(((Bignum)obj).value));
    159159        if (obj instanceof Ratio) {
    160160            BigInteger numerator = ((Ratio)obj).numerator();
Note: See TracChangeset for help on using the changeset viewer.