make tmp variable unsigned

This commit is contained in:
Krishna Vedala 2020-04-01 19:35:45 -04:00
parent d8ede0523a
commit 2c7944864b
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -102,7 +102,7 @@ int main(int argc, char **argv)
#ifdef DEBUG
printf("%p\t", ptr);
#endif
int tmp = ptr->value * i + carry;
unsigned int tmp = ptr->value * i + carry;
if (tmp >= 10)
{
div_t tmp2 = div(tmp, 10);