Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by asdfsdf ( 16 years ago )
#define SAMESIGN(a,b) (((a) < 0) == ((b) < 0))
void accounting2( int delta )
{
int counter1 = counter + delta
if (SAMESIGN(counter, delta) && !SAMESIGN(counter, counter1))
{
fprintf(stderr,"Overflow detected\n");
}
return counter1;
}
Revise this Paste