diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-11 00:01:44 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-11 00:01:44 +0000 |
commit | 44c0e7259800885d0028d8c5352f6760f670132b (patch) | |
tree | a2d28a15301012579e164cfe80177fc0bfd864ff | |
parent | 57bf8f165dd5a19c1876278e045a5b6b791ce4dd (diff) |
kernel: fix SEGMAXSIZE macro, force 64-bit result
-rw-r--r-- | sys/src/9/port/portdat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 7a4c88746..b4eea1a04 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -395,7 +395,7 @@ enum #define pagedout(s) (((uintptr)s)==0 || onswap(s)) #define swapaddr(s) (((uintptr)s)&~PG_ONSWAP) -#define SEGMAXSIZE (SEGMAPSIZE*PTEMAPMEM) +#define SEGMAXSIZE (1ULL*SEGMAPSIZE*PTEMAPMEM) struct Physseg { |