mirror of
https://github.com/TheAlgorithms/C
synced 2025-02-20 15:34:51 +03:00
make tmp variable unsigned
This commit is contained in:
parent
d8ede0523a
commit
2c7944864b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user