summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-05-06 21:35:36 +0000
committerMartin Baulig <martin@src.gnome.org>1999-05-06 21:35:36 +0000
commit6120c5e4a8ce2b53d19650e0d545d5ee49676ada (patch)
tree930bf82bf67a870d1507e5a0b68621bbb2ccb8e7 /src
parentb252a80b7ed8954beeb28c0be3df20bdd83015e5 (diff)
downloadlibgtop-6120c5e4a8ce2b53d19650e0d545d5ee49676ada.tar.gz
Use `(1L << feature)' instead of `(1 << feature)' to avoid problems
with integer overflows when we add more fields.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 97eb4233..e5aabcd1 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -129,7 +129,7 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
resp->u.sysdeps.features = glibtop_server_features;
resp->u.sysdeps.pointer_size = sizeof (void*)*8;
resp->u.sysdeps.flags = glibtop_server_features |
- (1 << GLIBTOP_SYSDEPS_FEATURES);
+ (1L << GLIBTOP_SYSDEPS_FEATURES);
resp->offset = _offset_union (sysdeps);
break;
#if GLIBTOP_SUID_CPU