corrected some minor warning

This commit is contained in:
Nico Pietroni 2014-08-01 00:25:26 +00:00
parent 48bca62885
commit b06ff095a1
1 changed files with 3 additions and 3 deletions

View File

@ -56,8 +56,8 @@ private:
const int y, const int y,
ObjType *elem) ObjType *elem)
{ {
assert((x>=0)&&(x<data.size())); assert((x>=0)&&(x<(int)data.size()));
assert((y>=0)&&(y<data[x].size())); assert((y>=0)&&(y<(int)data[x].size()));
data[x][y].push_back(elem); data[x][y].push_back(elem);
} }
@ -78,7 +78,7 @@ private:
///allocate space ///allocate space
data.resize(this->siz.X()); data.resize(this->siz.X());
for (int x=0;x<data.size();x++) for (size_t x=0;x<data.size();x++)
data[x].resize(this->siz.Y()); data[x].resize(this->siz.Y());