summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Planeta <mcsim.planeta@gmail.com>2012-10-05 20:08:50 +0300
committerMaksym Planeta <mcsim.planeta@gmail.com>2012-10-28 12:33:36 +0100
commitbed0cb72d333e63050350165ae29bf3b7f9b1a1d (patch)
tree0faef30b1719a455e855c25ee73c692f2b8130a1
parent3fb8db3ee9f5bf97c597a09af75a344e5c9b8d01 (diff)
Fix bug with operators priority.
*ext2fs/balloc.c (ext2_new_block): Function changed.
-rw-r--r--ext2fs/balloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/balloc.c b/ext2fs/balloc.c
index 30c2eb8d..b0fc5f2b 100644
--- a/ext2fs/balloc.c
+++ b/ext2fs/balloc.c
@@ -198,7 +198,7 @@ repeat:
* The goal was occupied; search forward for a free
* block within the next 32 blocks
*/
- if (j & 31 == 31)
+ if ((j & 31) == 31)
lmap = 0;
else
lmap = ((((unsigned long *) bh)[j >> 5]) >>