summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 4cc421d6215..6b17fbd2d31 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -2571,7 +2571,7 @@ lp_build_mod(struct lp_build_context *bld,
if (type.floating)
res = LLVMBuildFRem(builder, x, y, "");
- if (type.sign)
+ else if (type.sign)
res = LLVMBuildSRem(builder, x, y, "");
else
res = LLVMBuildURem(builder, x, y, "");