Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 4-5-3 about using relational operators to determine uint8_t
#3
Thanks for this, but we'd like an answer to the question: is the code compliant or not? I believe it's not compliant, because 
Code:
uc <= '9'
compares a character expression ('9') to something that's not a character, and that's not among the exceptions. Our customer claims it's compliant because of the exception to check for a digit.
Reply


Messages In This Thread
RE: Rule 4-5-3 about using relational operators to determine uint8_t - by chgros - 05-11-2025, 06:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)