gallivm: fix floating type in lp_build_mod helper
untested, but cannot have worked before.
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user