about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--kgramstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index 48e4b06..f91ef52 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp
@@ -432,7 +432,7 @@ std::string kgramstats::randomSentence(int n)
432 if ((rand() % cuts) > (under * under)) 432 if ((rand() % cuts) > (under * under))
433 { 433 {
434 cur.pop_front(); 434 cur.pop_front();
435 cuts--; 435 cuts -= under * under;
436 } else { 436 } else {
437 break; 437 break;
438 } 438 }