X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2d.h;h=73f39093cb2da11832e3d69a8d1c87f1f59d2047;hp=9caca5c1bfc01a9e89e19275ecdf76a1b6282d70;hb=3fba6928127cd65870bdcd96c8114ad5894247ae;hpb=1fd4f7cc977b9f1499716de10d15656bd50f4816 diff --git a/include/array2d.h b/include/array2d.h index 9caca5c..73f3909 100644 --- a/include/array2d.h +++ b/include/array2d.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2d.h,v 1.6 2000/06/26 21:15:24 kevin Exp $ +** $Id: array2d.h,v 1.7 2000/07/13 07:03:21 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -41,7 +41,7 @@ class Array2d { } Array2d (void) - : array_data(0), nx(0), ny(0) + : nx(0), ny(0), array_data(0) {} ~Array2d () @@ -92,7 +92,7 @@ class Array2d { void deleteArray (void) { if (array_data) { - for (int i = 0; i < nx; i++) + for (unsigned int i = 0; i < nx; i++) delete array_data[i]; delete array_data; }