These two variables should be unsigned. It doesn't make sense for them to be signed.

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.

These also get rid of some typecasts.
Merge pull request #533 from lioncash/master

outtextlimit and outtextlength should be unsigned.