[maemo-developers] [maemo-developers] Re: Tinymail using mmap() gets killed by the kernel of the device

From: Guillem Jover guillem.jover at nokia.com
Date: Tue Jul 18 17:25:51 EEST 2006
On Sun, 2006-07-16 at 14:52:41 +0300, ext Tomi Ollila wrote:
> Also, maybe better (or worse!) is (char *)(((int)address + 3) & ~3),
> assumed that sizeof (char *) == sizeof (int).

> This latter version seems to compile...

And runs... on this architecture, but not on others. ;)
If you have to use something like this, use intptr_t instead of int.

regards,
guillem

More information about the maemo-developers mailing list