On 25 October 2010 09:45, Walter Bright <[email protected]> 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):
>
> [email protected](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.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to