[Piglit] [PATCH 2/2] gl-1.0-readpixsanity: Eliminate use of variable length arrays.

Matt Turner mattst88 at gmail.com
Wed Oct 29 16:51:40 PDT 2014


On Wed, Oct 29, 2014 at 4:46 PM, Jose Fonseca <jfonseca at vmware.com> wrote:
>> Don't cast malloc.
>
> I did it out of habit, as these casts are required on C++ code (or one you'd get "error: invalid conversion from ‘void*’ to ‘GLfloat*’").

Yep. It's a tell of a C++ programmer. :)

Along with preincrementing the iterator in a for loop, even if it's
just an int. :)


More information about the Piglit mailing list