summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fold.c b/fold.c
index c2a7c12..a000ff4 100644
--- a/fold.c
+++ b/fold.c
@@ -385,8 +385,8 @@ foldint(Con *res, int op, int w, Con *cl, Con *cr)
 	default:
 		if (Ocmpw <= op && op <= Ocmpl1) {
 			if (op <= Ocmpw1) {
-				l.u = (uint32_t)l.u;
-				r.u = (uint32_t)r.u;
+				l.u = (int32_t)l.u;
+				r.u = (int32_t)r.u;
 			} else
 				op -= Ocmpl - Ocmpw;
 			switch (op - Ocmpw) {