Commit fe7d8b8
Fix Incomplete TYPEP implementation for single floats.
(Didier Verna)
This fixes the following problems:
(typep 1.0 'number) -> T but (typep 1.0 (find-class 'number) -> NIL
(typep 1.0 'real) -> T but (typep 1.0 (find-class 'read) -> NIL
2026-03-05 Didier Verna <didier@didierverna.net>
* src/org/armedbear/lisp/SingleFloat.java (typep): Fast-check the
type specifier against the REAL and NUMBER built-in classes; not
only the symbols.
c.f. <armedbear#735>1 parent 3ffb325 commit fe7d8b8
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
0 commit comments