summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2019-06-25 09:06:38 +0000
committerArne Juul <arnej@yahoo-inc.com>2019-06-25 09:06:38 +0000
commit74b2ac25810ce2eda7975469b87942d72089c82a (patch)
treebeca6b96f537afa9d18e0b8d6359feca4bf36e7d /eval
parentdc7b7062eac653dd33f559bd998a2da892934f63 (diff)
add braces
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/dense/dense_dimension_combiner.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/eval/src/vespa/eval/tensor/dense/dense_dimension_combiner.h b/eval/src/vespa/eval/tensor/dense/dense_dimension_combiner.h
index 6408c86902f..dee6bf0460a 100644
--- a/eval/src/vespa/eval/tensor/dense/dense_dimension_combiner.h
+++ b/eval/src/vespa/eval/tensor/dense/dense_dimension_combiner.h
@@ -57,7 +57,9 @@ public:
_outputIndex -= ld.idx * ld.outputMultiplier;
ld.idx = 0;
}
- if (_leftIndex >= _leftOnlySize) _leftIndex -= _leftOnlySize;
+ if (_leftIndex >= _leftOnlySize) {
+ _leftIndex -= _leftOnlySize;
+ }
}
void stepLeft() {
@@ -82,7 +84,9 @@ public:
_outputIndex -= rd.idx * rd.outputMultiplier;
rd.idx = 0;
}
- if (_rightIndex >= _rightOnlySize) _rightIndex -= _rightOnlySize;
+ if (_rightIndex >= _rightOnlySize) {
+ _rightIndex -= _rightOnlySize;
+ }
}
void stepRight() {
@@ -107,7 +111,9 @@ public:
_outputIndex -= cd.idx * cd.outputMultiplier;
cd.idx = 0;
}
- if (_outputIndex >= _outputSize) _outputIndex -= _outputSize;
+ if (_outputIndex >= _outputSize) {
+ _outputIndex -= _outputSize;
+ }
}
void stepCommon() {