[Tux4kids-commits] r776 - tuxmath/trunk/src

dbruce-guest at alioth.debian.org dbruce-guest at alioth.debian.org
Mon Dec 1 23:49:01 UTC 2008


Author: dbruce-guest
Date: 2008-12-01 23:49:01 +0000 (Mon, 01 Dec 2008)
New Revision: 776

Modified:
   tuxmath/trunk/src/mathcards.c
Log:
fix in add_all_valid() to prevent infinite loop



Modified: tuxmath/trunk/src/mathcards.c
===================================================================
--- tuxmath/trunk/src/mathcards.c	2008-12-01 11:46:11 UTC (rev 775)
+++ tuxmath/trunk/src/mathcards.c	2008-12-01 23:49:01 UTC (rev 776)
@@ -2021,7 +2021,11 @@
           }
           //reset j to keep loop from exploding
           if (k == MC_OPER_DIV)
-            mcdprintf("resetting to %d %d\n", j = ans, i = tmp);
+          {
+            j = ans;
+            i = tmp;
+            mcdprintf("resetting to %d %d\n", j, i);
+          }
         }
       }
     }




More information about the Tux4kids-commits mailing list