aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2025-05-08 14:59:18 +0200
committerHimbeer <himbeer@disroot.org>2025-05-08 14:59:37 +0200
commitec817184c088bc0c33a366bfbecc48f5545fa532 (patch)
tree486c0cb01d31d40dd682d834136603bf5dd99078
parentfe88f156e3bdb740e22d8a91b6db93e88e167e14 (diff)
Remove unnecessary cmp_e rhs indirection
The op member already tells us whether rhs holds a meaningful value.
-rw-r--r--include/expr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/expr.h b/include/expr.h
index 114d5a1..0771d60 100644
--- a/include/expr.h
+++ b/include/expr.h
@@ -194,9 +194,8 @@ enum cmpop {
struct cmp_e {
struct location loc;
- struct shift_e lhs;
enum cmpop op;
- struct shift_e *rhs;
+ struct shift_e lhs, rhs;
};
struct conjunction_e {