gallivm: fix floating type in lp_build_mod helper

untested, but cannot have worked before.
This commit is contained in:
Roland Scheidegger 2012-03-05 19:09:56 +01:00
parent 05579339c0
commit da5e9fce47

View file

@ -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, "");