Discussion:
[9fans] tbl fixes
(too old to reply)
steve
2012-10-16 07:11:00 UTC
Permalink
i seem to remember that someone (erik?) fixed a bug in tbl
which is causing it to misalign the edges of the boxes it draws around tables.

i looked in the archives but cannot see it,

anyone any ideas?

steve
erik quanstrom
2012-10-16 13:29:11 UTC
Permalink
Post by steve
i seem to remember that someone (erik?) fixed a bug in tbl
which is causing it to misalign the edges of the boxes it draws around tables.
i looked in the archives but cannot see it,
anyone any ideas?
tbl often misaligns if it is thinking one font and you're thinking
another. :-)

i did find some tbl changes that were cosmetic.
the only one of any substance looks to the following.
but the negative case should just use a huge number.
i would just use (int)(uintptr) to follow the rest of the code.

int
point(char *ss)
{
- vlong s = (uintptr)ss;
+ int s = (int)(uintptr)ss;

return(s >= 128 || s < 0);
}

- erik

Loading...