1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-22 09:06:46 +02:00

bitcmp/bitcmp.c: fixed fencepost error

This commit is contained in:
Werner Almesberger 2011-08-17 07:11:06 -03:00
parent 08a13cd975
commit 78d9fda12f

View File

@ -91,7 +91,7 @@ int main(int argc, char *const *argv)
len = got1 < got2 ? got1 : got2;
if (!len)
break;
for (i = 0; i <= len; i += bytes) {
for (i = 0; i < len; i += bytes) {
diff = 0;
switch (bytes) {
case 4: