Fixed some int - unsigned int problem for the case "combien < 0"
This commit is contained in:
parent
a415aef4d9
commit
8c36a1274b
1 changed files with 3 additions and 2 deletions
|
|
@ -127,9 +127,10 @@ public:
|
|||
}
|
||||
if (combien < 0)
|
||||
{
|
||||
if (_size+combien<0)
|
||||
unsigned int combloc = -combien;
|
||||
if (_size<combloc)
|
||||
throw std::runtime_error("Negative result in eoHowMany");
|
||||
return _size+combien;
|
||||
return _size-combloc;
|
||||
}
|
||||
return unsigned(combien);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue