Menu

#48 integer conversion bug

open
nobody
None
5
2008-06-30
2008-06-30
mwarning
No

There is probably an integer conversion bug in the frontend.
Found on the D.gnu news group:

> write("{}", cast(void*)0xFFFF_FFFF_FFFF_FFFF_UL); // prints
> ffffffffffff, OK
> write(cast(ulong*)0xFFFF_FFFF_FFFF_FFFF_UL); // prints ffffffffffff, OK
> write("{}", cast(ulong*)cast(void*)0xFFFF_FFFF_FFFF_FFFF_UL); // prints
> ffffffff, not OK

See link below for a discussion and patch:

http://www.digitalmars.com/webnews/newsgroups.php?art_group=D.gnu&article_id=3277

Discussion


Log in to post a comment.

Auth0 Logo