Skip to content

Commit 94a5f9c

Browse files
committed
🦕
1 parent aec878f commit 94a5f9c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/typegpu/src/tgsl/wgslGenerator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ export function generateExpression(
164164

165165
if (!lhsIsFloat && !rhsIsFloat) {
166166
if (
167-
(convLhs.dataType.type === 'u32' || convLhs.dataType.type === 'i32') &&
168-
(convRhs.dataType.type === 'u32' ||
169-
convRhs.dataType.type === 'i32')
167+
(convLhs.dataType.type === 'u32' ||
168+
convLhs.dataType.type === 'i32') &&
169+
(convRhs.dataType.type === 'u32' ||
170+
convRhs.dataType.type === 'i32')
170171
) {
171172
console.warn(
172173
'In the division, both sides were automatically cast to f32. This might not be the expected behavior. Consider using explicit conversions instead.',

0 commit comments

Comments
 (0)