Cast "pid" as unsigned long to avoid a bus error on sparc64.

OK matthieu@
This commit is contained in:
dcoppa 2010-07-30 05:35:58 +00:00
parent 988f34c0b9
commit 184d7c3b41

View File

@ -215,7 +215,7 @@ main(int argc, char *argv[])
#ifdef HAVE_GETPID
{
pid_t pid = getpid();
unsigned long pid = (unsigned long) getpid();
XChangeProperty(XtDisplay(toplevel), XtWindow(toplevel),
XInternAtom(XtDisplay(toplevel), "_NET_WM_PID", False),
XA_CARDINAL, 32, PropModeReplace,