mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 18:16:30 +03:00
Fix a ++ap bug.
This commit is contained in:
parent
9659726fbf
commit
94470875f3
@ -4,7 +4,6 @@
|
||||
*/
|
||||
#include "all.h"
|
||||
|
||||
|
||||
u3_noun
|
||||
u3_cwe_mule(u3_noun cor)
|
||||
{
|
||||
@ -20,6 +19,6 @@
|
||||
* C/Nock level, is identical to what a typed mule would produce,
|
||||
* without running the formula twice.
|
||||
*/
|
||||
return u3_cn_slam_on(hok, u3k(tap));;
|
||||
return u3_cn_slam_on(hok, u3k(tap));
|
||||
}
|
||||
}
|
||||
|
28
j/6/ap.c
28
j/6/ap.c
@ -116,19 +116,23 @@
|
||||
}
|
||||
_open_do_p(tssg) // =~
|
||||
{
|
||||
u3_noun tp_gen = u3t(p_gen);
|
||||
u3_noun ip_gen = u3h(p_gen);
|
||||
if ( u3_ne(u3du(p_gen)) ) {
|
||||
return u3nc(0, 1);
|
||||
} else {
|
||||
u3_noun tp_gen = u3t(p_gen);
|
||||
u3_noun ip_gen = u3h(p_gen);
|
||||
|
||||
if ( (u3_nul == p_gen) ) {
|
||||
return u3nc(u3_blip, 1);
|
||||
}
|
||||
else if ( (u3_nul == tp_gen) ) {
|
||||
return u3k(ip_gen);
|
||||
}
|
||||
else {
|
||||
return u3nt(c3__tsgr,
|
||||
u3k(ip_gen),
|
||||
_open_in_tssg(ter, tp_gen));
|
||||
if ( (u3_nul == p_gen) ) {
|
||||
return u3nc(u3_blip, 1);
|
||||
}
|
||||
else if ( (u3_nul == tp_gen) ) {
|
||||
return u3k(ip_gen);
|
||||
}
|
||||
else {
|
||||
return u3nt(c3__tsgr,
|
||||
u3k(ip_gen),
|
||||
_open_in_tssg(ter, tp_gen));
|
||||
}
|
||||
}
|
||||
}
|
||||
/***
|
||||
|
Loading…
Reference in New Issue
Block a user