[rt.cpan.org #58537] CAST in lvalue : compilation error under gcc 4.4.3

[email protected] ("Burak Gursoy via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Tue Aug 17 20:07:23 2010: Request 58537 was acted upon.
Transaction: Correspondence added by BURAK
       Queue: Win32API-Net
     Subject: CAST in lvalue : compilation error under gcc 4.4.3
   Broken in: 0.14
    Severity: Critical
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58537 >


20 Jun 2010 Sun, 03:57:56 tarihinde, DAMI yazdı:
> Win32API-Net fails to compile under gcc 4.4.3 (and hence under 
Strawberry 
> Perl 5.12.1 beta)
> 
> The reason is that a type cast is not considered as an lvalue and 
> therefore gcc won't accept an assignment to it.
> 
> The solution is to simply remove the (BYTE) typecasts on lvalues in 
> HV_GET_AV definition (lines 593 and 595).

I second the patch request. The suggested patch seems to work. This is 
also a showstopper for any other module depending on Win32API::Net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.