Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Chudyk <mateuszchudyk@gmail.com>2019-05-29 15:55:21 +0300
committerMateusz Chudyk <mateuszchudyk@gmail.com>2019-05-29 18:03:04 +0300
commit80bfdba3a9533c7f23cad392aabf70d0d99f0229 (patch)
tree3e927f5d8ab04f6ac67a7ef719ce66a38c43399b /example.cc
parent2da00c74718cd54df5b9db7f354c2a2fd75d7328 (diff)
Fix warnings: comparison between signed and unsigned...
Diffstat (limited to 'example.cc')
-rw-r--r--example.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.cc b/example.cc
index f4dbef1..e517f29 100644
--- a/example.cc
+++ b/example.cc
@@ -22,16 +22,16 @@ int main() {
// Fill with random values in range [-2, 2].
srand(1);
- for (int i = 0; i < A_rows * width; ++i) {
+ for (Index i = 0; i < A_rows * width; ++i) {
A[i] = ((float)rand()/(float)RAND_MAX)*4.0f - 2.0f;
}
- for (int i = 0; i < width * B_cols; ++i) {
+ for (Index i = 0; i < width * B_cols; ++i) {
B[i] = ((float)rand()/(float)RAND_MAX)*4.0f - 2.0f;
}
// Compute the top left corner of C as a sanity check.
float top_left_reference = 0.0;
- for (int w = 0; w < width; ++w) {
+ for (Index w = 0; w < width; ++w) {
top_left_reference += A[w] * B[w * B_cols];
}