size_t vs uintptr_t
    Walter Bright via Digitalmars-d 
    digitalmars-d at puremagic.com
       
    Sat Jun 18 13:06:09 PDT 2016
    
    
  
On 6/17/2016 8:50 AM, Guillaume Boucher wrote:
> I was referring to this diff in the pull linked request:
>
> -private size_t _alignUp(size_t alignment)(size_t n)
> +private uintptr_t _alignUp(uintptr_t alignment)(uintptr_t n)
>
> size_t is the correct type.  There is no reason to change it.
Since _alignUp returns a pointer-sized integer, uintptr_t is the correct type 
for it, not size_t.
    
    
More information about the Digitalmars-d
mailing list