pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2023-02-18
2023-02-18 11:57:52 by Tobias S. Josefowitz <tobij@tobij.de>
94b367ed190ffd99f370d651c5496f5437fc73de (
9
lines) (+
7
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Runtime: Fix detection for multisets using internal order in o_subtract()
2301:
{ struct mapping *m;
-
int got_cmp_less =
!!
multiset_get_cmp_less (Pike_sp[-1].u.multiset);
+
int got_cmp_less =
+
TYPEOF(*
multiset_get_cmp_less (Pike_sp[-1].u.multiset)
) !=
+
PIKE_T_INT
;
struct array *ind = multiset_indices (Pike_sp[-1].u.multiset); pop_stack(); push_array (ind);
2614:
{ struct mapping *m;
-
int got_cmp_less =
!!
multiset_get_cmp_less (Pike_sp[-1].u.multiset);
+
int got_cmp_less =
+
TYPEOF(*
multiset_get_cmp_less (Pike_sp[-1].u.multiset)
) !=
+
PIKE_T_INT
;
struct array *ind = multiset_indices (Pike_sp[-1].u.multiset); pop_stack(); push_array (ind);