On 28.11.2012 18:37, Alan Cox wrote: > I'm pretty sure that the "realmem" calculation is going to overflow on > i386/PAE, where the number of bytes of physical memory is greater than > the type long can represent. Right. long == int on i386/PAE, not LP64. Is uint64_t the correct type to use to catch that? -- Andre