From 20409ddf2251a21d40eeffa62bbd992469a2f1fc Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Mon, 13 May 2002 04:26:38 +0000 Subject: [PATCH] Fix IF_SEXT(val, 32). The constants need to have type long to handle size > 16. --- sys/sparc64/include/instr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sparc64/include/instr.h b/sys/sparc64/include/instr.h index 51f030098b5..7ac514daa71 100644 --- a/sys/sparc64/include/instr.h +++ b/sys/sparc64/include/instr.h @@ -148,7 +148,8 @@ /* Sign-extend a field of width W */ #define IF_SEXT(x, w) \ - (((x) & (1 << ((w) - 1))) != 0 ? (-1L - ((x) ^ ((1 << (w)) - 1))) : (x)) + (((x) & (1L << ((w) - 1))) != 0 ? \ + (-1L - ((x) ^ ((1L << (w)) - 1))) : (x)) #if 0 /*