[phobos] phobos commit, revision 2116

Don Clugston dclugston at googlemail.com
Mon Oct 25 01:58:33 PDT 2010


On 25 October 2010 09:45, Walter Bright <walter at digitalmars.com> wrote:
>
>
> dsource.org wrote:
>>
>> phobos commit, revision 2116
>>
>>
>> user: Don Clugston
>>
>> msg:
>> Fix for BigInt assign for 64 bit compilers. Also a few steps towards const
>> correctness, and some comment fixes.
>>
>> http://www.dsource.org/projects/phobos/changeset/2116
>>
>>
>
> Still dies (OSX only):
>
> core.exception.AssertError at std.bigint(481): unittest failure
>

Please add this line at 481, and tell me what it prints.

    assert(BigInt(0x1234_5678_9ABC_5A5AL).ulongLength == 1);
+    printf("%Lx%Lx\n", BigInt(0x1234_5678_9ABC_5A5AL).data.peekUlong(0));
    assert(BigInt(0x1234_5678_9ABC_5A5AL).toLong() == 0x1234_5678_9ABC_5A5AL);

obviously adding
import core.stdc.stdio;

It's looking to me as though have a long-related codegen bug.


More information about the phobos mailing list