v334 Broken on GCC

masterfalcon

07-02-2008 16:42:29

QuickGUISkinSet.cpp fails to compile on GCC now.

QuickGUISkinSet.cpp:473: error: expression in new-declarator must have integral or enumeration type

Changing the aforementioned line from:
unsigned char *dstData = new unsigned char[imageSize.width * imageSize.height * bpp];

to:

unsigned char *dstData = new unsigned char[(int)(imageSize.width * imageSize.height * bpp)];

fixes it.

Dave

kungfoomasta

07-02-2008 17:42:46

Hmm, thought I fixed that. Thanks for pointing it out, all it needs is type casting to int, like you have shown.