This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: array has IndexOutOfBoundsException


Well, that was embarrassing!
--
	--Per Bothner
per at bothner dot com   http://www.bothner.com/per/
Index: Arrays.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/kawa/functions/Arrays.java,v
retrieving revision 1.2
diff -u -r1.2 Arrays.java
--- Arrays.java	10 Jan 2003 04:55:02 -0000	1.2
+++ Arrays.java	12 Mar 2003 18:36:30 -0000
@@ -41,7 +41,7 @@
 	      lowBounds = new int[rank];
 	    lowBounds[i] = lo;
 	  }
-	total += size;
+	total *= size;
       }
     return GeneralArray.makeSimple(lowBounds, dimensions, new FVector(total, value));
   }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]