Charj Arrays: quiet warning about initialization order
authorPhil Miller <mille121@illinois.edu>
Tue, 9 Nov 2010 00:27:35 +0000 (18:27 -0600)
committerPhil Miller <mille121@illinois.edu>
Tue, 9 Nov 2010 00:29:29 +0000 (18:29 -0600)
src/langs/charj/src/charj/libs/Array.h

index 03cb2f1261deb0d26619be0d43d275dd9c84f00a..5c79725ceb4c9f1d2880cb4169a7e94605daf10f 100644 (file)
@@ -15,7 +15,7 @@ namespace CharjArray {
     Range() {}
     Range(int size_) : size(size_), start(0), stop(size) {}
     Range(int start_, int stop_) :
-      start(start_), stop(stop_), size(stop_ - start_) {
+    size(stop_ - start_), start(start_), stop(stop_) {
       assert(stop >= start);
     }
   };