summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mtd-tests/nandbiterrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mtd-tests/nandbiterrs.c b/tests/mtd-tests/nandbiterrs.c
index 24a6c03..f583c14 100644
--- a/tests/mtd-tests/nandbiterrs.c
+++ b/tests/mtd-tests/nandbiterrs.c
@@ -333,7 +333,7 @@ static int insert_biterror(void)
int bit, mask, byte;
for (byte = 0; byte < pagesize; ++byte) {
- for (bit = 7, mask = 0x80; bit >= 0; bit--, mask>>=0) {
+ for (bit = 7, mask = 0x80; bit >= 0; bit--, mask >>= 1) {
if (wbuffer[byte] & mask) {
wbuffer[byte] &= ~mask;
printf("Inserted biterror @ %u/%u\n", byte, bit);