summaryrefslogtreecommitdiff
path: root/kernel/celltypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/celltypes.h')
-rw-r--r--kernel/celltypes.h7
1 files changed, 5 insertions, 2 deletions
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)