Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed subtraction post condition test

...

Code Block
bgColor#ccccff
unsigned int ui1, ui2, udiff ;

/* Initialize ui1 and ui2 */

udiff = ui1 - ui2;
if (udiff > ui1 || udiff > ui2) {
  /* handle error condition */
}

...