summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-02-17 08:48:45 +0000
committerNicholas Clark <nick@ccl4.org>2009-02-17 08:50:49 +0000
commit6434436b0da451686dbed3e341681484be8b68b8 (patch)
tree40d0510bd498791ccb31b942f6785470f0e0c18a /perl.c
parentd94216564938cd42af43fa553fe0ab9651fe48c9 (diff)
downloadperl-6434436b0da451686dbed3e341681484be8b68b8.tar.gz
In S_incpush(), avoid "possible loss of data" warnings from the C compiler.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl.c b/perl.c
index bcc3843339..ba45aac50a 100644
--- a/perl.c
+++ b/perl.c
@@ -4292,10 +4292,10 @@ STATIC void
S_incpush(pTHX_ const char *const dir, STRLEN len, U32 flags)
{
dVAR;
- const U8 addsubdirs = flags & INCPUSH_ADD_SUB_DIRS;
- const U8 addoldvers = flags & INCPUSH_ADD_OLD_VERS;
- const U8 canrelocate = flags & INCPUSH_CAN_RELOCATE;
- const U8 unshift = flags & INCPUSH_UNSHIFT;
+ const U8 addsubdirs = (U8)flags & INCPUSH_ADD_SUB_DIRS;
+ const U8 addoldvers = (U8)flags & INCPUSH_ADD_OLD_VERS;
+ const U8 canrelocate = (U8)flags & INCPUSH_CAN_RELOCATE;
+ const U8 unshift = (U8)flags & INCPUSH_UNSHIFT;
const U8 push_basedir = (flags & INCPUSH_NOT_BASEDIR) ? 0 : 1;
SV *subdir = NULL;
AV *inc;