D arithmetic problem

Adam D. Ruppe destructionator at gmail.com
Thu Jun 4 06:31:38 PDT 2009


On Thu, Jun 04, 2009 at 09:04:45AM -0400, Kagamin wrote:
> How would you write this?
> uintptr_t pageMask = -0x1000;

 uintptr_t pageMask = ~0x1000 + 1;

 ?

-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list