Skip to content

Commit 982de28

Browse files
MathiasVPgeoffw0
andauthored
Update cpp/ql/lib/semmle/code/cpp/commons/Printf.qll
Co-authored-by: Geoffrey White <[email protected]>
1 parent e2ab1c8 commit 982de28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/commons/Printf.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class FormattingFunctionCall extends Expr {
277277
*/
278278
bindingset[f]
279279
private int lengthInBase10(float f) {
280-
f = 0 and result = 0
280+
f = 0 and result = 1
281281
or
282282
result = f.log10().ceil()
283283
}

0 commit comments

Comments
 (0)