From: Roland Scheidegger Date: Mon, 5 Mar 2012 18:09:56 +0000 (+0100) Subject: gallivm: fix floating type in lp_build_mod helper X-Git-Tag: 062012170305~1213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da5e9fce47b2029c6f6445ed53f3b5e5ff3889a0;p=profile%2Fivi%2Fmesa.git gallivm: fix floating type in lp_build_mod helper untested, but cannot have worked before. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index 4cc421d..6b17fbd 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, "");