summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-09-24 17:19:05 +0800
committerXinchen Hui <laruence@gmail.com>2017-09-24 17:19:05 +0800
commitdb63367871ce475d52ae8a3c9cc8efe5bc908dec (patch)
tree8a3edc9a78d0f84f5c35d7029d41bed01b9abe1f
parent73d6456d7d6be62340b3607805a45cbf420c1cb8 (diff)
downloadphp-git-db63367871ce475d52ae8a3c9cc8efe5bc908dec.tar.gz
Compiler warning
-rw-r--r--ext/spl/spl_dllist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c
index db9fa838c8..b9ec24cadb 100644
--- a/ext/spl/spl_dllist.c
+++ b/ext/spl/spl_dllist.c
@@ -733,7 +733,7 @@ SPL_METHOD(SplDoublyLinkedList, setIteratorMode)
return;
}
- intern->flags = value & SPL_DLLIST_IT_MASK | intern->flags & SPL_DLLIST_IT_FIX;
+ intern->flags = (value & SPL_DLLIST_IT_MASK) | (intern->flags & SPL_DLLIST_IT_FIX);
RETURN_LONG(intern->flags);
}