Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 346d59a5 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Fix coverity issue 1466895 Unintentional integer overflow

parent ef2ad3e3
Branches
Tags
1 merge request!338Fix a bunch of warning reported by coverity on the recents MR
......@@ -235,8 +235,8 @@ void update_progress(int currentValue, int maximumValue) {
res = div(currentValue*100, maximumValue);
}
else {
/* Calcule le quotient de la division */
res.quot = (int)( (long long)( currentValue * 100 ) / maximumValue );
/* Compute the quotient */
res.quot = (int)( ((double)currentValue * 100.) / (double)maximumValue );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment