[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 19 14:26:00 PDT 2017


davide added a subscriber: nlewycky.
davide added a comment.

And I was wrong. @nlewycky explained on IRC:

  14:23 < nlewycky> gcc is correct, in 'char + char' each char gets promoted to 'int' first then summed, then you've got an unsigned int == int comparison
  14:23 < nlewycky> uint8_t and unsigned char are also promoted to int (not unsigned int) before the addition


https://reviews.llvm.org/D32137





More information about the lldb-commits mailing list