1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-26 01:44:03 +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; len = got1 < got2 ? got1 : got2;
if (!len) if (!len)
break; break;
for (i = 0; i <= len; i += bytes) { for (i = 0; i < len; i += bytes) {
diff = 0; diff = 0;
switch (bytes) { switch (bytes) {
case 4: case 4: