File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -894,8 +894,16 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
894
894
* compiler to optimize it out if possible. This is because Configure makes
895
895
* sure that the machine has an 8-bit byte, so if c is stored in a byte, the
896
896
* sizeof() guarantees that this evaluates to a constant true at compile time.
897
+ *
898
+ * For Coverity, be always true, because otherwise Coverity thinks
899
+ * it finds several expressions that are always true, independent
900
+ * of operands. Well, they are, but that is kind of the point.
897
901
*/
902
+ #ifndef __COVERITY__
898
903
#define FITS_IN_8_BITS (c ) ((sizeof(c) == 1) || !(((WIDEST_UTYPE)(c)) & ~0xFF))
904
+ #else
905
+ #define FITS_IN_8_BITS (c ) (1)
906
+ #endif
899
907
900
908
#ifdef EBCDIC
901
909
# ifndef _ALL_SOURCE
You can’t perform that action at this time.
0 commit comments