diff options
author | Martin Baulig <martin@src.gnome.org> | 1999-05-06 21:35:36 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-05-06 21:35:36 +0000 |
commit | 6120c5e4a8ce2b53d19650e0d545d5ee49676ada (patch) | |
tree | 930bf82bf67a870d1507e5a0b68621bbb2ccb8e7 /sysdeps/osf1/procsignal.c | |
parent | b252a80b7ed8954beeb28c0be3df20bdd83015e5 (diff) | |
download | libgtop-6120c5e4a8ce2b53d19650e0d545d5ee49676ada.tar.gz |
Use `(1L << feature)' instead of `(1 << feature)' to avoid problems
with integer overflows when we add more fields.
Diffstat (limited to 'sysdeps/osf1/procsignal.c')
-rw-r--r-- | sysdeps/osf1/procsignal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/osf1/procsignal.c b/sysdeps/osf1/procsignal.c index 3c6cc8a6..36e1e2b9 100644 --- a/sysdeps/osf1/procsignal.c +++ b/sysdeps/osf1/procsignal.c @@ -28,8 +28,8 @@ #include <glibtop_suid.h> static const unsigned long _glibtop_sysdeps_proc_signal = -(1 << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1 << GLIBTOP_PROC_SIGNAL_BLOCKED) + -(1 << GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1 << GLIBTOP_PROC_SIGNAL_SIGCATCH); +(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1L << GLIBTOP_PROC_SIGNAL_BLOCKED) + +(1L << GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1L << GLIBTOP_PROC_SIGNAL_SIGCATCH); /* Init function. */ |