Changeset 5984


Ignore:
Timestamp:
02/26/04 01:36:02 (17 years ago)
Author:
piso
Message:

Moved computeTotalSize() to AbstractArray?.java.

File:
1 edited

Legend:

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

    r5981 r5984  
    33 *
    44 * Copyright (C) 2003-2004 Peter Graves
    5  * $Id: ComplexArray.java,v 1.1 2004-02-26 00:49:31 piso Exp $
     5 * $Id: ComplexArray.java,v 1.2 2004-02-26 01:36:02 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    107107    }
    108108
    109     // FIXME Detect overflow!
    110     private static int computeTotalSize(int[] dimensions)
    111     {
    112         int size = 1;
    113         for (int i = dimensions.length; i-- > 0;)
    114             size *= dimensions[i];
    115         return size;
    116     }
    117 
    118109    public LispObject typeOf()
    119110    {
Note: See TracChangeset for help on using the changeset viewer.