+1
0
-1

loop "for" for 0x1000 times

Hi all,

I'm using VectorCast product for unit testing, and I have to test a FOR loop

for(i=0; i < 0x1000; ++i) {
wp[i] = rp[i];
}

It has to loop 10...

Posting in: 

2 Answers:

+1
0
-1

Hi Hatasra,

What type is i? If it is an unsigned char it will always be less than 0x1000 so will loop forever.

Jason