Skip to content

Commit 8f78792

Browse files
Fix bug with single-float's in make-decision-tree
This fixes the issue where single-float's pass floatp and then are declared to be of type double-float with the safety optimization flag set to 0.
1 parent cafcdd9 commit 8f78792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decision-tree/src/decision-tree.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
(defun make-split-predicate (attribute &optional optimize)
3535
;; make-split-predicate returns optimized function
3636
;; if the optional data type is double-float
37-
(if (and optimize (floatp attribute))
37+
(if (and optimize (typep attribute 'double-float))
3838
#'(lambda (x)
3939
(declare (optimize speed (safety 0) (debug 0))
4040
(type double-float attribute x))

0 commit comments

Comments
 (0)