[Gtkradiant] Bug with libs/ddslib/ddslib.c lines 693 to 723 on 64 bit systems.

Forest Hale lordhavoc at ghdigital.com
Tue Mar 18 13:50:43 CDT 2008


Branan Riley wrote:
> Switching surface from a void pointer to an unsigned int seems to have
> fixed the crashes and image corruption. I've also fixed some of the
> DDS loading functions to use size_t instead of unsigned int when
> casting to/from pointers.

I tend to use unsigned char * for such purposes rather than size_t - a little more type safety if it remains a variable for any period of time (in this case it doesn't), and it's a little bit less exotic.

-- 
LordHavoc
Author of DarkPlaces Quake1 engine and mod
http://icculus.org/twilight/darkplaces/
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass




More information about the Gtkradiant mailing list