On Mon, Jul 27, 2009 at 7:20 AM, Tofu Linden<[email protected]> wrote:
> Sharven Raabe wrote:
>> The call looks like this:
>> // default to 0s.
>> U32 size = mvci.getSize();
>> std::vector<U8> data(size);
>> memset(&(data[0]), 0, size);
>
> How curious.  I wonder if its problem is not quite what it's complaining
> about - could you try changing 'U32' to 'size_t'?

It's a gcc bug that's fixed in the ubuntu developer branch, if not
upstream gcc. You can put an if(size) before the memset for now as a
workaround.
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to