]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd/fsx.cc: clarify calculation precedence for '&' and '?'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 28 Sep 2015 13:39:55 +0000 (15:39 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/librbd/fsx.cc

index 6f44c11d79f06b0c30b909a35f34cbe4c7ba4353..55a2ba30bd9330d6268d0b70bec88701822e7bff 100644 (file)
@@ -1123,7 +1123,7 @@ check_buffers(char *good_buf, char *temp_buf, unsigned offset, unsigned size)
                                        unsigned bad = short_at(&temp_buf[i]);
                                        prt("0x%5x\t0x%04x\t0x%04x", offset,
                                            short_at(&good_buf[offset]), bad);
-                                       unsigned op = temp_buf[offset & 1 ? i+1 : i];
+                                       unsigned op = temp_buf[(offset & 1) ? i+1 : i];
                                        prt("\t0x%5x\n", n);
                                        if (op)
                                                prt("operation# (mod 256) for "