Re: GPOINTER_TO_UINT(NULL) == 0 ?



I think so

glibconfig.h:
#define GPOINTER_TO_UINT(p) ((guint)  (p))
#define GPOINTER_TO_INT(p) ((gint)   (p))

but why would you need to make such an assumption?

Jim


rsteinke w-link net wrote:

>         Is it possible to assume that
>
> GPOINTER_TO_UINT(NULL) == 0
>
> across all platforms? Whether this is true or false, it
> might also be a good thing to mention in the docs.
>
> Ron Steinke
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]