You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by GitBox <gi...@apache.org> on 2021/02/08 17:47:40 UTC

[GitHub] [qpid-proton] astitcher commented on pull request #295: fix invalid unsigned arithmetic.

astitcher commented on pull request #295:
URL: https://github.com/apache/qpid-proton/pull/295#issuecomment-775323966


   > it seems to me a practical example that will help to understand why I proposed changes.
   > 
   > ```c++
   > unsigned long A;
   > 
   > // A= 70; (A - 11) = 59; true
   > // A= 11; (A - 11) = 0; false
   > // A= 1; (A - 11) = 18446744073709551607; true
   > // A= 0; (A - 11) = 18446744073709551606; true
   > if (A - 11 > 0)
   > ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org