From 870d4d02ee9085f1d0910db3f6e6838749d6a1ce Mon Sep 17 00:00:00 2001 From: David Coppa Date: Thu, 14 Apr 2011 15:07:37 +0200 Subject: bugfix: use 'unsigned long' to feed XChangeProperty, closes #3285968 old code crashed on sparc64, pid_t seems to be 32bit on that platform. --- src/Screen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 044d689..bf131fb 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -362,7 +362,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, // we're going to manage the screen, so now add our pid #ifdef HAVE_GETPID - pid_t bpid = getpid(); + unsigned long bpid = static_cast(getpid()); rootWindow().changeProperty(fluxbox->getFluxboxPidAtom(), XA_CARDINAL, sizeof(pid_t) * 8, PropModeReplace, -- cgit v0.11.2