RE: Can we declare a variable as 'int' in the driver -???

This is one of the things that lint (http://www.gimpel.com) is great for
finding.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: xxxxx@paragon.ru [mailto:xxxxx@paragon.ru]
Sent: Wednesday, June 21, 2000 8:33 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Can we declare a variable as ‘int’ in the driver ???

I don’t see what difference iCount being signed or not
When a I used to be a pupil I was given a task by my teacher to find a bug
in this code:

ULONG uCount;
for(uCount = 10; uCount >= 0; uCount–)
{
// …
}

And I’ve found it then :slight_smile: This loop is infinite, 'cause uCount is always >=
0.