[dmd-internals] OSX 64 bit
Walter Bright
walter at digitalmars.com
Thu Dec 1 10:58:20 PST 2011
On 12/1/2011 12:45 AM, Don Clugston wrote:
>
> This really looks as though hexDigits is the wrong address. Maybe
> because it's a local static variable.
> I predict that a minimal test case would be:
>
> void foo(uint value)
> {
> static immutable string hexDigits = "0123456789ABCDEF";
> assert( hexDigits[value& 0xF] == '0');
> }
> void main()
> {
> foo(0);
> }
>
Sadly, it works.
More information about the dmd-internals
mailing list