mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
16 lines
167 B
C
16 lines
167 B
C
unsigned
|
|
sat_add (unsigned i)
|
|
{
|
|
unsigned ret = i + 1;
|
|
if (ret < i)
|
|
ret = i;
|
|
return ret;
|
|
}
|
|
|
|
main ()
|
|
{
|
|
if (sat_add (~0U) != ~0U)
|
|
abort ();
|
|
exit (0);
|
|
}
|