Skip Menu |

This queue is for tickets about the Text-PDF CPAN distribution.

Report information
The Basics
Id: 18164
Status: resolved
Priority: 0/
Queue: Text-PDF

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.25
Fixed in: 0.27a



Subject: Bitwise & usage causing compilation problems on 5.8.0
Text::PDF::Pages has the following block of code: $test = 1; $i = 0; foreach $e ($inh->elementsof) { $test &= $e->val == $bbox[$i++]; } return $self if $test && $i == 4; The "&=" should be "&&=". As it is, some users are getting the following error message: Possible precedence problem on bitwise & operator at /usr/lib/perl5/site_perl/5.8.0/Text/PDF/Pages.pm line 336. Note: I have not personally experienced this problem, but a user of my CAM::PDF module reported this error message to me. Nonetheless, the code clearly has a typo. Thanks, Chris
Subject: Re: [rt.cpan.org #18164] Bitwise & usage causing compilation problems on 5.8.0
Date: Wed, 15 Mar 2006 10:54:27 +0700
To: bug-Text-PDF [...] rt.cpan.org
From: Martin Hosken <martin_hosken [...] sil.org>
Dear Chris, Thanks for this. I've fixed the bug and am uploading Text-PDF-0.27a.tar.gz but because I messed up 0.27 it may not accept 27a hopefully it will. Oops! :) Yours, Martin Show quoted text
> Tue Mar 14 10:27:05 2006: Request 18164 was acted upon. > Transaction: Ticket created by guest > Queue: Text-PDF > Subject: Bitwise & usage causing compilation problems on 5.8.0 > Owner: Nobody > Requestors: CDOLAN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18164 > > > > Text::PDF::Pages has the following block of code: > > $test = 1; $i = 0; > foreach $e ($inh->elementsof) > { $test &= $e->val == $bbox[$i++]; } > return $self if $test && $i == 4; > > The "&=" should be "&&=". As it is, some users are getting the > following error message: > > Possible precedence problem on bitwise & operator at > /usr/lib/perl5/site_perl/5.8.0/Text/PDF/Pages.pm line 336. > > Note: I have not personally experienced this problem, but a user of my > CAM::PDF module reported this error message to me. Nonetheless, the > code clearly has a typo. > > Thanks, > Chris > >