Skip to content

Commit dc7d71f

Browse files
committed
🔧
1 parent 25cb8b5 commit dc7d71f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/typegpu/src/tgsl/wgslGenerator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export function generateExpression(
158158

159159
if (
160160
op === '/' &&
161-
convLhs.dataType.type !== 'f32' &&
162-
convLhs.dataType.type !== 'f16' ||
163-
convRhs.dataType.type !== 'f32' &&
164-
convRhs.dataType.type !== 'f16'
161+
(convLhs.dataType.type !== 'f32' &&
162+
convLhs.dataType.type !== 'f16') ||
163+
(convRhs.dataType.type !== 'f32' &&
164+
convRhs.dataType.type !== 'f16')
165165
) {
166166
console.warn(
167167
'In division we cast both sides to the f32. This may not be the expected behaviour. Consider using explicit conversions instead.',

0 commit comments

Comments
 (0)