Browse Source

ram: fixed int overflow on pagetok macro

master
Tobias Tschinkowitz 8 years ago
committed by Aaron Marcher
parent
commit
5db729fedb
  1. 2
      components/ram.c

2
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)

Loading…
Cancel
Save