outtextlimit and outtextlength should be unsigned.

I'm pretty sure having a negative maximum allowable text output limit wouldn't happen.
Also, I'm pretty sure an output length won't be negative. (if that actually is possible, color me surprised).

These also get rid of some typecasts.

More of a stylistic change than anything.