Fixed 64-bit pointer truncation in FreeBSD driver compat layer, fixes #9187.

This commit is contained in:
Alex Smith 2012-11-18 21:16:37 +00:00
parent 184553775f
commit ba68dfba87
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@
#define MJUM9BYTES (9 * 1024)
#define MJUM16BYTES (16 * 1024)
#define ALIGN_BYTES (sizeof(int) - 1)
#define ALIGN(x) ((((unsigned)x) + ALIGN_BYTES) & ~ALIGN_BYTES)
#define ALIGN_BYTES (sizeof(unsigned long) - 1)
#define ALIGN(x) ((((unsigned long)x) + ALIGN_BYTES) & ~ALIGN_BYTES)
/* Macros for counting and rounding. */
#ifndef howmany