Add a comment on `wid = -wid' that it's OK because wid's value was
originally a short so won't remain the same value.
if (wid == 0)
return;
if (wid < 0)
if (wid == 0)
return;
if (wid < 0)
- wid = -wid;
- if (wid < (num >= 0 ? max : max-1)) {
+ wid = -wid; /* OK because wid originally a short. */
+ if ((size_t)wid < (num >= 0 ? max : max-1)) {
/* Build up the string representation of num in reverse. */
charstring_t rev = charstring_create (0);
int i = num >= 0 ? num : -num;
/* Build up the string representation of num in reverse. */
charstring_t rev = charstring_create (0);
int i = num >= 0 ? num : -num;