From 1950c03195cb2bac76817aa125ea1ba7a3a3f1c6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 18 Jan 2025 14:13:40 +0900 Subject: [PATCH] [qfcc] Promote types for bitops Bitops are allowed for float operands in quakec and ruamoko (not glsl, but meh for now). Fixes another ice in game-source/quake. --- tools/qfcc/source/expr_binary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr_binary.c b/tools/qfcc/source/expr_binary.c index 8d06748f4..05ff68dca 100644 --- a/tools/qfcc/source/expr_binary.c +++ b/tools/qfcc/source/expr_binary.c @@ -626,7 +626,8 @@ static expr_type_t mod_ops[] = { }; static expr_type_t bit_ops[] = { - { .match_a = is_math, .match_b = is_math, }, + { .match_a = is_math, .match_b = is_math, + .promote = true }, {} };