ref: refs/heads/SuSE-Code-11-Branch
commit 678f0f4a5bf100cdb2b10df9df0871f23d8eea43
Author: Ján Kupec
Date: Fri Sep 4 12:39:48 2009 +0200
int/unsigned problem correction
---
src/Table.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/Table.cc b/src/Table.cc
index 6f89b1b..79468b0 100644
--- a/src/Table.cc
+++ b/src/Table.cc
@@ -231,7 +231,8 @@ void Table::dumpTo (ostream &stream) const {
_width > _screen_width &&
// don't resize the column to less than 3, or if the resulting table
// would still exceed the screen width (bnc #534795)
- _width - _screen_width < _max_width[c] - 3) {
+ _max_width[c] > 3 &&
+ _width - _screen_width < ((int) _max_width[c]) - 3) {
_max_width[c] -= _width - _screen_width;
break;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org