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

Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2021-11-11 13:19:13 +00:00
committed by GitHub
parent e2ab1c8c5e
commit 982de28b89

View File

@@ -277,7 +277,7 @@ class FormattingFunctionCall extends Expr {
*/
bindingset[f]
private int lengthInBase10(float f) {
f = 0 and result = 0
f = 0 and result = 1
or
result = f.log10().ceil()
}