Skip to content

Commit 2703178

Browse files
author
Karl Williamson
committed
handy.h: Silence Solaris compiler warning
Making this an unsigned constant silences the scary and wrong Solaris warnings about integer overflow
1 parent 12b4b03 commit 2703178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
626626
# define _CC_WORDCHAR_L1 (1<<28)
627627
# define _CC_XDIGIT_A (1<<29)
628628
# define _CC_NONLATIN1_FOLD (1<<30)
629-
# define _CC_QUOTEMETA (1<<31)
629+
# define _CC_QUOTEMETA (1U<<31) /* 1U keeps Solaris from griping */
630630
/* Unused: None
631631
* If more are needed, can give up some of the above. The first ones to go
632632
* would be those that require just two tests to verify, either there are two

0 commit comments

Comments
 (0)