projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17f39d
)
ram: fixed int overflow on pagetok macro
author
Tobias Tschinkowitz
<he4d@posteo.de>
Thu, 24 May 2018 10:09:26 +0000
(12:09 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Thu, 24 May 2018 12:51:30 +0000
(14:51 +0200)
components/ram.c
patch
|
blob
|
history
diff --git
a/components/ram.c
b/components/ram.c
index 0ac97537161e4b9397ac6de87a60f9864e17a72c..0333b3b27b1f2c3883ae7db232ec5e003cac7cd2 100644
(file)
--- 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)