From 6d7b5f90641169d60113b618ad127c7568d13dce Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 14 Jun 2013 10:31:18 +0200 Subject: Fixed even more ConstEval bugs found using xsthammer --- kernel/celltypes.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'kernel/celltypes.h') diff --git a/kernel/celltypes.h b/kernel/celltypes.h index cd72192a..a87dfa1f 100644 --- a/kernel/celltypes.h +++ b/kernel/celltypes.h @@ -190,8 +190,11 @@ struct CellTypes if (type == "$sshl" && !signed1) type = "$shl"; - if (!signed1 || !signed2) - signed1 = false, signed2 = false; + if (type != "$sshr" && type != "$sshl" && type != "$shr" && type != "$shl" && + type != "$pos" && type != "$neg" && type != "$not") { + if (!signed1 || !signed2) + signed1 = false, signed2 = false; + } #define HANDLE_CELL_TYPE(_t) if (type == "$" #_t) return const_ ## _t(arg1, arg2, signed1, signed2, result_len); HANDLE_CELL_TYPE(not) -- cgit v1.2.3