]> code.delx.au - gnu-emacs-elpa/commitdiff
The 'start' parameter passed in is now a 0-based index, like what is expected
authorJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 03:20:15 +0000 (23:20 -0400)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 03:20:15 +0000 (23:20 -0400)
by chess-database.el.

chess-test.el

index 8df18a92334b11cf3876ae12c2aa251b05d643f2..77fbc6d81211122ab8971736f34e43c593aaaf68 100644 (file)
@@ -25,9 +25,7 @@
          (message "Running validation suite...")
          (let* ((db-count (chess-database-count database))
                 (ply-count 0)
-                (index (if start
-                           (1- start)
-                         0))
+                (index (or start 0))
                 (last-index (if (and count (> count 0))
                                 (min db-count (+ index count))
                               db-count))