projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
578294d
)
fix compile error under MinGW
author
SimonQian
<SimonQian@SimonQian.com>
Fri, 18 Feb 2011 12:39:55 +0000
(20:39 +0800)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Fri, 18 Feb 2011 12:54:22 +0000
(13:54 +0100)
src/flash/nand/ecc.c
patch
|
blob
|
history
diff --git
a/src/flash/nand/ecc.c
b/src/flash/nand/ecc.c
index b4039976044df33d4baa37fa2212909ad8d1c845..b3623d4ceb54d8006e996dcb8ab2d4279b25f6a2 100644
(file)
--- a/
src/flash/nand/ecc.c
+++ b/
src/flash/nand/ecc.c
@@
-121,12
+121,12
@@
int nand_calculate_ecc(struct nand_device *nand, const uint8_t *dat, uint8_t *ec
return 0;
}
-static inline int countbits(uint32_t b
yte
)
+static inline int countbits(uint32_t b)
{
int res = 0;
- for (;b
yte; byte
>>= 1)
- res += b
yte
& 0x01;
+ for (;b
; b
>>= 1)
+ res += b & 0x01;
return res;
}