mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 03:40:21 -04:00
bug in while loop
This commit is contained in:
parent
20d8d8b531
commit
9a32ab6294
@ -248,10 +248,10 @@ inline void StdOutput::spacePrint( std::ostream& os,
|
||||
|
||||
// trim the length so it doesn't end in middle of a word
|
||||
if ( stringLen == allowedLen )
|
||||
while ( s[stringLen+start] != ' ' &&
|
||||
while ( stringLen >= 0 &&
|
||||
s[stringLen+start] != ' ' &&
|
||||
s[stringLen+start] != ',' &&
|
||||
s[stringLen+start] != '|' &&
|
||||
stringLen >= 0 )
|
||||
s[stringLen+start] != '|' )
|
||||
stringLen--;
|
||||
|
||||
// ok, the word is longer than the line, so just split
|
||||
|
Loading…
x
Reference in New Issue
Block a user