diff options
| author | 2025-11-12 18:46:39 +0100 | |
|---|---|---|
| committer | 2025-11-12 18:46:46 +0100 | |
| commit | b55005e5c08868c88ab7109464066f5da36bdf37 (patch) | |
| tree | d3a63ba91fcb3da990287d76e0754db7ead2fb8c | |
| parent | 22ac1b2f1f44c6d92b065681cb63afc1fd3eee67 (diff) | |
fold: clamp int to 32bits when required
| -rw-r--r-- | ir/fold.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -50,6 +50,7 @@ foldint(enum op op, enum irclass k, union ref lr, union ref rr) case Ougte: x = l.u >= r.u; break; default: assert(0); } + if (!w) x = (uint)x; return mkintcon(k, x); } |