Skip to content

Commit d19e6c9

Browse files
EAddariocompilade
andauthored
Use { and } around the conditionally-executed statement
Co-authored-by: compilade <[email protected]>
1 parent 97d839c commit d19e6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/imatrix/imatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static bool compute_vector_statistics(std::vector<tensor_statistics> & tstats, c
223223
if (div > 0.0) {
224224
for (float w : weights) {
225225
const float p = w / div;
226-
if (p > 0.0) entropy -= p * std::log2(p);
226+
if (p > 0.0) { entropy -= p * std::log2(p); }
227227
}
228228
}
229229
}

0 commit comments

Comments
 (0)