Fixed lemieux compiler warnings.
authorJayant DeSouza <jdesouza@uiuc.edu>
Sun, 18 Jul 2004 04:03:36 +0000 (04:03 +0000)
committerJayant DeSouza <jdesouza@uiuc.edu>
Sun, 18 Jul 2004 04:03:36 +0000 (04:03 +0000)
src/langs/jade/JArray.h

index f80b071f013ecfa2cbac49320c866581ca073202..31baf6f5f1dfe74586be3c1183bc2eac0237354a 100644 (file)
@@ -201,7 +201,8 @@ public:
        inline T& getElement(uint idx[]) {
                uint index = 0;
                for(uint i=0; i<numDimensions; i++) {
-                       assert(idx[i] >= 0 && idx[i] <= dims[i]);
+                       assert(//idx[i] >= 0 && 
+                               idx[i] <= dims[i]);
                        index += idx[i] * dimSize[i];
                }
                return data[index];
@@ -270,6 +271,7 @@ public:
                end[0] = e;
                stride[0] = str;
                useVirtual = 1;
+               return *this;
        }
 
        // 2D