diff options
author | Tobias Tschinkowitz <he4d@posteo.de> | 2018-05-24 12:09:26 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-24 14:51:30 +0200 |
commit | c55cffd2a6115fecfc7b82b8f11ea89f72a5f29c (patch) | |
tree | eee53cdd496abec42e86d10b7bcd01af40ec01fd /components/ram.c | |
parent | 573d2e40fe109332354fbe9cd83205fd8ac72d3f (diff) |
ram: fixed int overflow on pagetok macro
Diffstat (limited to 'components/ram.c')
-rw-r--r-- | components/ram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/ram.c b/components/ram.c index 0ac9753..0333b3b 100644 --- a/components/ram.c +++ b/components/ram.c @@ -75,7 +75,7 @@ #include <unistd.h> #define LOG1024 10 - #define pagetok(size, pageshift) ((size) << (pageshift - LOG1024)) + #define pagetok(size, pageshift) (size_t)(size << (pageshift - LOG1024)) inline int load_uvmexp(struct uvmexp *uvmexp) |