Fix bad signness comparison for default values.

This commit is contained in:
Lauri Laanmets 2016-03-21 16:12:52 +02:00
parent 7e92f2981c
commit ab17c8ecb0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ size_t ByteMatrix::getWidth() const
return width_;
}
char ByteMatrix::get(size_t x, size_t y) const
signed char ByteMatrix::get(size_t x, size_t y) const
{
return bytes_[y][x];
}

View File

@ -21,7 +21,7 @@ public:
size_t getHeight() const;
size_t getWidth() const;
char get(size_t x, size_t y) const;
signed char get(size_t x, size_t y) const;
std::vector< std::vector<char> > getArray() const;
void set(size_t x, size_t y, const char value);