[gbrainy] Fix bugzilla #759472



commit 17a89c9a2d8e0cf5e1ca108078398278d831f7a4
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Jan 5 17:38:36 2016 +0100

    Fix bugzilla #759472

 src/Games/Calculation/CalculationConsecutiveSum.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Games/Calculation/CalculationConsecutiveSum.cs 
b/src/Games/Calculation/CalculationConsecutiveSum.cs
index 5dae30a..a7f037d 100644
--- a/src/Games/Calculation/CalculationConsecutiveSum.cs
+++ b/src/Games/Calculation/CalculationConsecutiveSum.cs
@@ -51,7 +51,7 @@ namespace gbrainy.Games.Calculation
                {
                        int found = 0;
 
-                       for (int i = 0; i < total_size - CONSECUTIVE_SIZE; i++)
+                       for (int i = 0; i < total_size - CONSECUTIVE_SIZE + 1; i++)
                        {
                                int sum = 0;
                                for (int c = 0; c < CONSECUTIVE_SIZE; c++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]