This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
catch bug
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] catch bug
- From: "james chen" <james_ch1 at sina dot com>
- Date: Wed, 24 Oct 2001 11:39:41 +0800
Hi,
I have caught a bug in hal/arm/arch/current/src/hal_misc.c. I think that
it haven't been found because nobody called it. change 'i++' to 'i--", is it
right?
Best Regards,
james
-------------------------------------
int
hal_msbindex(int mask)
{
int i;
for (i = 32; i >= 0; i++) {
^^^^^^
==> i--
if (mask & (1<<i)) return (i);
}
return (-1);
}