diff options
author | Roland Scheidegger <[email protected]> | 2012-03-05 19:09:56 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2012-03-05 19:09:56 +0100 |
commit | da5e9fce47b2029c6f6445ed53f3b5e5ff3889a0 (patch) | |
tree | eb4ecc197da4e8148bbc97e071d1418d1522cffe /src/gallium/auxiliary/gallivm | |
parent | 05579339c0da442669ea75749651e8cf4f9ec39b (diff) |
gallivm: fix floating type in lp_build_mod helper
untested, but cannot have worked before.
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.c | 2 |
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, ""); |