unsigned longs are 4billion positive. Longs are -2billion to 2billion. Also, changing the typedef is not sufficient.
You will change things that shouldn't be changed to longs, and you will not get them all. The *only* fool proof way to expand your vnums is to go over your code with a fine-toothed comb and change the 'int's to 'long's. > -----Original Message----- > From: Boh-Ahz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 21, 2003 8:37 PM > To: 'Shaun Mcbride'; [email protected] > Subject: RE: Vnum Limitations > > > If I'm remembering right, you should just be able to change > the 'typedef' of sh_int (all vnums are sh_int's) to be an int > rather than short int. For most modern systems, both ints > and longs are 32 bits, which should give you more than enough > space (4 billion plus I think). Oh, and by changing the > typdef to just int (rather than the short int), I don't think > you would need to change the string formatting either. > > Boh-Ahz > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Shaun > > Mcbride > > Sent: Tuesday, January 21, 2003 5:41 PM > > To: [email protected] > > Subject: Vnum Limitations > > > > Anyone know where I can get the fix for the vnum limitations? The > search > > feature on the archives seems to be broke. > > > > > > > > > > > > -- > > ROM mailing list > > [email protected] > > http://www.rom.org/cgi-bin/mailman/listinfo/rom > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

