From 6fb5da5092c33ebb9599f766eec89b2f16c7bf1a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 29 Mar 2010 18:47:04 +0000 Subject: [PATCH] Cosmetic tweak to use a type suffix instead of a cast to force a constant to be a long. --- sys/amd64/include/reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index 4a839181882..592084318eb 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -109,7 +109,7 @@ struct dbreg { #define DBREG_DR7_EXEC 0x00 /* break on execute */ #define DBREG_DR7_WRONLY 0x01 /* break on write */ #define DBREG_DR7_RDWR 0x03 /* break on read or write */ -#define DBREG_DR7_MASK(i) ((u_long)0xf << ((i) * 4 + 16) | 0x3 << (i) * 2) +#define DBREG_DR7_MASK(i) (0xful << ((i) * 4 + 16) | 0x3 << (i) * 2) #define DBREG_DR7_SET(i, len, access, enable) \ ((u_long)((len) << 2 | (access)) << ((i) * 4 + 16) | (enable) << (i) * 2) #define DBREG_DR7_GD 0x2000