Skip to content

Commit

Permalink
TMP: adds printf for previous bogus assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
joemfb committed Jun 29, 2023
1 parent 430d71e commit a670d22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/noun/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ u3m_leap(c3_w pad_w)
{
c3_w len_w; /* the length of the new road (avail - (pad + wiseof(u3a_road))) */
u3_road* rod_u;
const c3_w gar_w = u3P.gar_w;

_rod_vaal(u3R);

Expand Down Expand Up @@ -896,6 +897,12 @@ u3m_leap(c3_w pad_w)
}
}

if ( ((u3a_outa(rod_u) >> u3a_page) == gar_w)
|| ((u3a_outa(rod_u) + c3_wiseof(u3a_road) - 1) >> u3a_page) == gar_w )
{
fprintf(stderr, "loom: ward would've been bogus\r\n");
}

/* Attach the new road to its parents.
*/
{
Expand Down

0 comments on commit a670d22

Please sign in to comment.