Re: Having trouble with pfMalloc()(?)

New Message Reply Date view Thread view Subject view Author view

Jay Gischer (gischer++at++knex.engr.sgi.com)
Mon, 13 Jul 1998 08:33:33 -0700 (PDT)


Bob Cowling writes:
> I'm sure you'll be inundated with answers, but you've made a simple
> typo.
>
>
> Here's what you probably want (move the parentheses)
>
>
> striplengths=(int *)(pfMalloc((height-1)*sizeof(int),
> pfGetSharedArena()));
>

Prior version was

 striplengths=(int *)(pfMalloc((height-1)*sizeof(int)),
                                       pfGetSharedArena());

Which is the infamous C/C++ "comma expression"... I knew I detested
them for a reason.

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.