Commit ade9151
committed
simplify: add Compare Bool/Float/Long paths with named type constants
Root cause of prior failures: raw hex 0x00000010000 was TListExact,
not TLongExact (0x00000000400). List comparisons matched the Long
path and got LongCompare which returns NotImplemented.
Fix: use HIR_TYPE_LONGEXACT, HIR_TYPE_FLOATEXACT, HIR_TYPE_NONETYPE,
HIR_TYPE_BOOL named constants from hir_type_c.h. No more raw hex.
Compare handler now covers None, Bool, Float, Long (4/5 paths).
Only UnicodeCompare remains as C++ fallback.1 parent aa14a88 commit ade9151
1 file changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
165 | 193 | | |
166 | 194 | | |
167 | 195 | | |
| |||
0 commit comments