Pelles C forum

Pelles C => Bug reports => Topic started by: ivmai on June 19, 2009, 01:47:11 PM

Title: "Integer value too large" warning
Post by: ivmai on June 19, 2009, 01:47:11 PM
The following code produces the above warning (is it a feature or a bug?):

int main(void)
{
 unsigned v = 0;
 return v - (3 - 16);
}
Title: Re: "Integer value too large" warning
Post by: AlexN on June 19, 2009, 08:46:22 PM
The following code produces the above warning (is it a feature or a bug?):

int main(void)
{
 unsigned v = 0;
 return v - (3 - 16);
}


I think, it is a feature. v is unsigned and you produce a negative value with is equal to a very big integer with is to long (1 bit to long) for a signed integer.
Title: Re: "Integer value too large" warning
Post by: Pelle on June 21, 2009, 01:05:38 PM
Works fine in v6.0