gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/org/nongnu/libvob/impl DefaultVobMap.java


From: Asko Soukka
Subject: [Gzz-commits] libvob/org/nongnu/libvob/impl DefaultVobMap.java
Date: Wed, 09 Apr 2003 10:45:06 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Asko Soukka <address@hidden>    03/04/09 10:45:06

Modified files:
        org/nongnu/libvob/impl: DefaultVobMap.java 

Log message:
        expanding arrays

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/impl/DefaultVobMap.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: libvob/org/nongnu/libvob/impl/DefaultVobMap.java
diff -u libvob/org/nongnu/libvob/impl/DefaultVobMap.java:1.3 
libvob/org/nongnu/libvob/impl/DefaultVobMap.java:1.4
--- libvob/org/nongnu/libvob/impl/DefaultVobMap.java:1.3        Wed Mar 26 
06:50:13 2003
+++ libvob/org/nongnu/libvob/impl/DefaultVobMap.java    Wed Apr  9 10:45:06 2003
@@ -32,7 +32,7 @@
 /** An implementation of VobMap.
  */
 public class DefaultVobMap implements VobMap {
-public static final String rcsid = "$Id: DefaultVobMap.java,v 1.3 2003/03/26 
11:50:13 tjl Exp $";
+public static final String rcsid = "$Id: DefaultVobMap.java,v 1.4 2003/04/09 
14:45:06 humppake Exp $";
     public static boolean dbg = false;
     private static void p(String s) { if(dbg) pa(s); }
     private static void pa(String s) { System.err.println(s); }
@@ -51,20 +51,23 @@
        return arr;
     }
 
+    // XXX The following arrays are never expanded :/ May cause
+    // ArrayIndexOutOfBounds exceptions.
+
     /** For each coordinate system, the index of the first vob
      * stored there.
      */
-    int[] vstart = new int[100];
+    int[] vstart = new int[10000];
 
     /** For each vob, the index of the next vob in the same
      * coordinate system.
      */
-    int[] vnext = new int[100];
+    int[] vnext = new int[10000];
 
-    Vob[] vobs = new Vob[100];
+    Vob[] vobs = new Vob[10000];
     /** Indexed like vobs, the second coordinate system for the vob.
      */
-    int[] secondcs = new int[100];
+    int[] secondcs = new int[10000];
 
     int nvobs = 1;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]