ram: fixed int overflow on pagetok macro
Tobias Tschinkowitz he4d@posteo.de
Thu, 24 May 2018 12:09:26 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
components/ram.c
→
components/ram.c
@@ -75,7 +75,7 @@ #include <sys/types.h>
#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)