Skip to content

Commit c5cf6f5

Browse files
authored
webgpu: dont use mod as it is a reserved keyword (#6667)
1 parent 5edb812 commit c5cf6f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tfjs-backend-webgpu/src/webgpu_program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ const commonSnippet = `
352352
353353
fn idiv(a: i32, b: i32, sign: f32) -> i32 {
354354
var res: i32 = a / b;
355-
let mod: i32 = a % b;
356-
if (sign < 0. && mod != 0) {
355+
let modulo: i32 = a % b;
356+
if (sign < 0. && modulo != 0) {
357357
res = res - 1;
358358
}
359359
return res;

0 commit comments

Comments
 (0)