fix toHArr usage in another place
This commit is contained in:
parent
789064140b
commit
fe280613af
@ -797,14 +797,13 @@ void cbqn_runLine0(char* ln, i64 read) {
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
} else if (isCmd(cmdS, &cmdE, "e ") || isCmd(cmdS, &cmdE, "explain ")) {
|
} else if (isCmd(cmdS, &cmdE, "e ") || isCmd(cmdS, &cmdE, "explain ")) {
|
||||||
B expl = bqn_explain(utf8Decode0(cmdE), replPath);
|
HArr* expla = toHArr(bqn_explain(utf8Decode0(cmdE), replPath));
|
||||||
HArr* expla = toHArr(expl);
|
|
||||||
usz ia=PIA(expla);
|
usz ia=PIA(expla);
|
||||||
for(usz i=0; i<ia; i++) {
|
for(usz i=0; i<ia; i++) {
|
||||||
printsB(expla->a[i]);
|
printsB(expla->a[i]);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
dec(expl);
|
ptr_dec(expla);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
printf("Unknown REPL command\n");
|
printf("Unknown REPL command\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user