Browse Source

ram: fixed int overflow on pagetok macro

master
Tobias Tschinkowitz 6 years ago
committed by Aaron Marcher
parent
commit
5db729fedb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/ram.c

+ 1
- 1
components/ram.c View File

@@ -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