Skip to content

Commit afcfe0a

Browse files
authored
Merge pull request #36 from ThoughtWorksInc/signed_indices
Indicies should be signed
2 parents 5b1a948 + 6290838 commit afcfe0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenCLKernelBuilder/src/main/scala/com/thoughtworks/compute/OpenCLKernelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ trait OpenCLKernelBuilder extends FloatArrays {
212212
}
213213
}
214214
val indexId = freshName("index")
215-
indexId -> fast"size_t $indexId = ${products.mkFastring(" + ")};\n"
215+
indexId -> fast"ptrdiff_t $indexId = ${products.mkFastring(" + ")};\n"
216216
}).unzip
217217

218218
// fast"

0 commit comments

Comments
 (0)