Parcourir la source

ram: fixed int overflow on pagetok macro

master
Tobias Tschinkowitz il y a 6 ans
committed by Aaron Marcher
Parent
révision
5db729fedb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      components/ram.c

+ 1
- 1
components/ram.c Voir le fichier

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


Chargement…
Annuler
Enregistrer