dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa01a1e
)
Use parentheses for bit* to be on the safe side
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 14 Jun 2009 20:13:17 +0000
(20:13 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 14 Jun 2009 20:13:17 +0000
(20:13 +0000)
Follow-up to r51815.
includes/db/Database.php
patch
|
blob
|
history
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
fe31766
..
4c151d7
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-1445,15
+1445,15
@@
abstract class DatabaseBase {
*/
function bitNot($field) {
- return
'~'.$bitField
;
+ return
"(~$bitField)"
;
}
function bitAnd($fieldLeft, $fieldRight) {
- return
$fieldLeft.'&'.$fieldRight
;
+ return
"($fieldLeft & $fieldRight)"
;
}
function bitOr($fieldLeft, $fieldRight) {
- return
$fieldLeft.'|'.$fieldRight
;
+ return
"($fieldLeft | $fieldRight)"
;
}
/**