gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] libvob include/vob/Coorder.hxx org/nongnu/libvo...


From: Tuomas J. Lukka
Subject: [Gzz-commits] libvob include/vob/Coorder.hxx org/nongnu/libvo...
Date: Thu, 31 Jul 2003 04:55:40 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Tuomas J. Lukka <address@hidden>        03/07/31 04:55:40

Modified files:
        include/vob    : Coorder.hxx 
        org/nongnu/libvob/input/impl: StandardBoundedFloatModel.java 

Log message:
        Tests now pass - fix crash and StandardBoundedFloatModel default 
constructor

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/Coorder.hxx.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: libvob/include/vob/Coorder.hxx
diff -u libvob/include/vob/Coorder.hxx:1.6 libvob/include/vob/Coorder.hxx:1.7
--- libvob/include/vob/Coorder.hxx:1.6  Wed Jun 11 13:41:55 2003
+++ libvob/include/vob/Coorder.hxx      Thu Jul 31 04:55:40 2003
@@ -128,6 +128,8 @@
 
     int size() { return cs.size(); }
     Transform *get(int i) {
+       if(i < 0) return 0;
+       if((unsigned)i >= cs.size()) return 0;
        return cs[i];
     }
 };
Index: libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java
diff -u libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java:1.2 
libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java:1.3
--- libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java:1.2      
Mon Jun 30 03:08:31 2003
+++ libvob/org/nongnu/libvob/input/impl/StandardBoundedFloatModel.java  Thu Jul 
31 04:55:40 2003
@@ -9,6 +9,9 @@
        implements BoundedFloatModel {
     private double min, max, val;
 
+    public StandardBoundedFloatModel() {
+       this(0, 1);
+    }
     public StandardBoundedFloatModel(double min, double max) {
        this.min = min;
        this.max = max;




reply via email to

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