summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regen/warnings.pl8
-rw-r--r--warnings.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/regen/warnings.pl b/regen/warnings.pl
index b0537f9ee1..0987b8be32 100644
--- a/regen/warnings.pl
+++ b/regen/warnings.pl
@@ -464,10 +464,10 @@ category parameters passed.
#define packWARN3(a,b,c) ((a) | ((b)<<8) | ((c)<<16) )
#define packWARN4(a,b,c,d) ((a) | ((b)<<8) | ((c)<<16) | ((d) <<24))
-#define unpackWARN1(x) ((x) & 0xFF)
-#define unpackWARN2(x) (((x) >>8) & 0xFF)
-#define unpackWARN3(x) (((x) >>16) & 0xFF)
-#define unpackWARN4(x) (((x) >>24) & 0xFF)
+#define unpackWARN1(x) ((U8) (x) )
+#define unpackWARN2(x) ((U8) ((x) >> 8))
+#define unpackWARN3(x) ((U8) ((x) >> 16))
+#define unpackWARN4(x) ((U8) ((x) >> 24))
#define ckDEAD(x) \
(PL_curcop && \
diff --git a/warnings.h b/warnings.h
index 4cb6a4e3c6..5658e2183f 100644
--- a/warnings.h
+++ b/warnings.h
@@ -223,10 +223,10 @@ category parameters passed.
#define packWARN3(a,b,c) ((a) | ((b)<<8) | ((c)<<16) )
#define packWARN4(a,b,c,d) ((a) | ((b)<<8) | ((c)<<16) | ((d) <<24))
-#define unpackWARN1(x) ((x) & 0xFF)
-#define unpackWARN2(x) (((x) >>8) & 0xFF)
-#define unpackWARN3(x) (((x) >>16) & 0xFF)
-#define unpackWARN4(x) (((x) >>24) & 0xFF)
+#define unpackWARN1(x) ((U8) (x) )
+#define unpackWARN2(x) ((U8) ((x) >> 8))
+#define unpackWARN3(x) ((U8) ((x) >> 16))
+#define unpackWARN4(x) ((U8) ((x) >> 24))
#define ckDEAD(x) \
(PL_curcop && \