New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math::BigInt gives completely when Math::BigInt::GMP is used #9405
Comments
From pcg@goof.comCreated by pcg@goof.comWhen Math::BigInt uses GMP as backend, it gives completely bogus results: perl -MMath::BigInt=lib,GMP -e 'my $b = 0xc0010203; my $m = Math::BigInt->new (2) ** 24 - 1; warn $m + $b' perl -MMath::BigInt=lib,GMP -e 'my $b = 0xc0010203; my $m = Math::BigInt->new (2) ** 32 - 1; warn $m + $b' This only seems to happen with 32-bit perls. Perl Info
|
From p5p@perl.wizbit.beCiteren Marc Lehmann <perlbug-followup@perl.org>:
Can you run: perl -MMath::BigInt=lib,GMP -Mbignum=version Kind regards, Bram |
The RT System itself - Status changed from 'new' to 'open' |
From nospam-abuse@bloodgate.comOn Saturday 05 July 2008 10:28:54 Bram wrote:
I am pretty sure that is because the value is in-between treated as Can you please run: perl -Mbignum,l,GMP=v ? All the best, Tels -- "Un bon mot ne prouve rien." -- Voltaire |
From nospam-abuse@bloodgate.comOn Saturday 05 July 2008 10:50:59 you wrote:
Sorry, perl -Mbignum=l,GMP,v But I think I found the bug, GMP,xs contains: if (SvUOK(x)) That should probably be: if (SvUOK(x)) Marc, could you please patch, recompile and test with this and see if it All the best, Tels -- "In my opiniation, "burglarize" is a perfectionally validative -- SharpFang (651121) on 2004-12-13 at /. about "burgle" |
From kraai@ftbfs.orgHowdy, I was able to reproduce the original problem on my system and, after $ perl -MMath::BigInt=lib,GMP -e 'my $b = 0xc0010203; my $m = Math::BigInt->new (2) ** 24 - 1; warn $m + $b' These match the results produced by bc. Here's the output requested by Bram: $ perl -MMath::BigInt=lib,GMP -Mbignum=version The output requested by Tels was the same. -- |
From dana@acm.orgJust to make the connection, this is in Math::BigInt::GMP's queue as RT 71548, and still open. |
From @dcollinsnOn Sun Mar 02 22:53:47 2014, danaj wrote:
In that ticket, which is still open, the maintainer reports that Math-BigInt-GMP-1.46 has been uploaded, which fixes this bug. In any event, Math::BigInt::GMP is not a core module, so this should be closed rejected. Please visit https://rt.cpan.org/Public/Bug/Display.html?id=71548 for further discussion related to this issue. (In particular, if this is confirmed fixed on a system that was previously broken, please report this there, so that the maintainer knows that they can close that ticket.) -- |
@dcollinsn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#56608 (status was 'rejected')
Searchable as RT56608$
The text was updated successfully, but these errors were encountered: