Thanks for the catch! How about just adding the limit check back in.
for (i=1; (size>i) && (i<0xffffff); i<<=1); Do you like the rest of the changes I made to the algorithm? David Jacobs ----- Original Message ----- From: "Sam Tregar" <[EMAIL PROTECTED]> > > + for (i = 1; size > i; i <<= 1); > > Infinite loop if size == MAXINT, eh? "So don't do that." Ok. > > -sam > >