typed ⌾(n⊸⊑)
This commit is contained in:
parent
c3b46a42bc
commit
96c68b66c5
@ -921,19 +921,15 @@ B pick_ucw(B t, B o, B w, B x) {
|
|||||||
B arg = IGet(x, wi);
|
B arg = IGet(x, wi);
|
||||||
B rep = c1(o, arg);
|
B rep = c1(o, arg);
|
||||||
if (reusable(x) && TI(x,canStore)(rep)) {
|
if (reusable(x) && TI(x,canStore)(rep)) {
|
||||||
if (TI(x,elType)==el_i32) {
|
if (TI(x,elType)==el_i8 ) { i8* xp = i8any_ptr (x); xp[wi] = o2iu(rep); return x; }
|
||||||
i32* xp = i32any_ptr(x);
|
else if (TI(x,elType)==el_i16) { i16* xp = i16any_ptr(x); xp[wi] = o2iu(rep); return x; }
|
||||||
xp[wi] = o2i(rep);
|
else if (TI(x,elType)==el_i32) { i32* xp = i32any_ptr(x); xp[wi] = o2iu(rep); return x; }
|
||||||
return x;
|
else if (TI(x,elType)==el_f64) { f64* xp = f64any_ptr(x); xp[wi] = o2fu(rep); return x; }
|
||||||
} else if (v(x)->type==t_harr) {
|
else if (v(x)->type==t_harr) {
|
||||||
B* xp = harr_ptr(x);
|
B* xp = harr_ptr(x);
|
||||||
dec(xp[wi]);
|
dec(xp[wi]);
|
||||||
xp[wi] = rep;
|
xp[wi] = rep;
|
||||||
return x;
|
return x;
|
||||||
} else if (TI(x,elType)==el_f64) {
|
|
||||||
f64* xp = f64any_ptr(x);
|
|
||||||
xp[wi] = o2f(rep);
|
|
||||||
return x;
|
|
||||||
} else if (v(x)->type==t_fillarr) {
|
} else if (v(x)->type==t_fillarr) {
|
||||||
B* xp = fillarr_ptr(a(x));
|
B* xp = fillarr_ptr(a(x));
|
||||||
dec(xp[wi]);
|
dec(xp[wi]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user