summaryrefslogtreecommitdiff
path: root/tests/bugs/bool-init.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bool-init.slang')
-rw-r--r--tests/bugs/bool-init.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/bool-init.slang b/tests/bugs/bool-init.slang
index 51fa852f9..b073a52cc 100644
--- a/tests/bugs/bool-init.slang
+++ b/tests/bugs/bool-init.slang
@@ -16,7 +16,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
Thing thing = {};
int index = int(dispatchThreadID.x);
- if (index % 3)
+ if (index % 3 != 0)
{
thing.a = (index & 1) != 0;
}