mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 05:45:42 +00:00
ram: fixed int overflow on pagetok macro
This commit is contained in:
parent
f17f39d0a2
commit
5db729fedb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user