1
0

ram: fixed int overflow on pagetok macro

This commit is contained in:
Tobias Tschinkowitz 2018-05-24 12:09:26 +02:00 committed by Aaron Marcher
parent f17f39d0a2
commit 5db729fedb

View File

@ -75,7 +75,7 @@
#include <unistd.h> #include <unistd.h>
#define LOG1024 10 #define LOG1024 10
#define pagetok(size, pageshift) ((size) << (pageshift - LOG1024)) #define pagetok(size, pageshift) (size_t)(size << (pageshift - LOG1024))
inline int inline int
load_uvmexp(struct uvmexp *uvmexp) load_uvmexp(struct uvmexp *uvmexp)