Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 10.5, shift left operator example
#3
Dear Lundin, thanks for your response.

If in the example the shift result were cast to uint8_t, it would be at least consistent to the rule (cast to the underlying type). But then in most cases, the very cast then would prevent what the programmer actually intended. So I'm a bit at a loss with the question, if rule 10.5 in general could be meaningful at all in the context of the
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)