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

That is true, but as the variable was declared as int (should be signed),
0xffffffff is -1. The code generated by the compiler for the var >= 0
should do a signed compare.

Duncan

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: 23 June 2000 00:39
To: NT Developers Interest List
Subject: [ntdev] RE: Can we declare a variable as ‘int’ in the driver
???

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

:-)))))
Surely, it will be 0 - and will overflow to 0xffffffff (which is MAX_ULONG
which is > 0) on next iteration.

Max


You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to $subst(‘Email.Unsub’)