summaryrefslogtreecommitdiff
path: root/chess-pos.el
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2014-04-01 16:47:57 +0200
committerMario Lang <mlang@delysid.org>2014-04-01 16:47:57 +0200
commit565e267478cd571b10d906e076345d78d8d9d311 (patch)
tree60b50a38c5d6b4e672e103118fce4356c3122cbc /chess-pos.el
parent539d39a0dbcfb3e1d264be20c916f81f1b167a39 (diff)
chess-rf-to-index: Fix assertion.
Should be and, not or. cl-check-type is more clear anyway.
Diffstat (limited to 'chess-pos.el')
-rw-r--r--chess-pos.el4
1 files 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)