fix ⍟ with empty typed repeat counts

This commit is contained in:
dzaima 2024-04-03 01:24:18 +03:00
parent 647a0b97e7
commit af0a40c732
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ void repeat_bounds(i64* bound, B g) { // doesn't consume
#define UPD_BOUNDS(B,I) ({ i64 i_ = (I); if (i_<bound[0]) bound[0] = i_; if (i_>bound[1]) bound[1] = i_; })
if (isArr(g)) {
usz ia = IA(g);
if (ia == 0) return;
u8 ge = TI(g,elType);
if (elNum(ge)) {
i64 bres[2];

View File

@ -333,6 +333,7 @@ w←1‿1⥊1 ⋄ x←2⥊1 ⋄ w‿x <¨↩ ⋄ {! (∾⟨•Repr𝕩,": Expe
%USE eqvar a¯5+10 {1+𝕩 10}_eqvar a %% ¨ 5+10
%USE eqvar a¯5+10 {1+𝕩 10}_eqvar a %% ¨ 5+10
%USE eqvar a¯5+10 {1+(𝕩{!𝕩10 𝕗}) 10}_eqvar a %% ¨ 5+10
!00, , "" 0 %% ,,
!"Calling a modifier" % 1+{} 0
!"⍟: 𝔾 contained non-number" % 1+1,,3 0
!"Expected integer, got 1.5" % 1+1.5 0