summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da55f58)
raw | patch | inline | side by side (parent: da55f58)
author | octo <octo> | |
Thu, 15 Jun 2006 20:37:27 +0000 (20:37 +0000) | ||
committer | octo <octo> | |
Thu, 15 Jun 2006 20:37:27 +0000 (20:37 +0000) |
Christophe Kalt is having problems with what appears to be a 32bit overflow.
This is just to make sure the multiplications with `pagesize' are not causing
this.
This is just to make sure the multiplications with `pagesize' are not causing
this.
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index 1595cdecbcaee1831504a891bb70ebef11286fea..f8ce93f328fd697d7e1979ac5f25031a6c74c54c 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
static int ds_num = 4;
#ifdef KERNEL_SOLARIS
-static int pagesize;
+static unsigned long long pagesize;
static kstat_t *ksp;
#endif /* KERNEL_SOLARIS */
{
#ifdef KERNEL_SOLARIS
/* getpagesize(3C) tells me this does not fail.. */
- pagesize = getpagesize ();
+ pagesize = (unsigned long long) getpagesize ();
if (get_kstat (&ksp, "unix", 0, "system_pages"))
ksp = NULL;
#endif /* KERNEL_SOLARIS */