From 565e267478cd571b10d906e076345d78d8d9d311 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Tue, 1 Apr 2014 16:47:57 +0200 Subject: chess-rf-to-index: Fix assertion. Should be and, not or. cl-check-type is more clear anyway. --- chess-pos.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chess-pos.el b/chess-pos.el index 8dba92e..63e29ee 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -278,8 +278,8 @@ color will do." (defsubst chess-rf-to-index (rank file) "Convert RANK and FILE coordinates into an octal index." - (cl-assert (or (>= rank 0) (< rank 8))) - (cl-assert (or (>= file 0) (< file 8))) + (cl-check-type rank (integer 0 7)) + (cl-check-type file (integer 0 7)) (+ (* 8 rank) file)) (defsubst chess-coord-to-index (coord) -- cgit v1.2.3