Skip to content
Snippets Groups Projects
Commit ef1ee34e authored by Ettayeb Yassine's avatar Ettayeb Yassine
Browse files

modified fix on sign inequality to deals with number=0 case which is the origin of the alarm

parent 6bd4c26c
No related branches found
No related tags found
No related merge requests found
......@@ -5,14 +5,11 @@ void set_flag(int number, int *sign_flag) {
return;
}
if (number > 0) {
if (number >= 0) { // on remplace > par >= pour gérer le cas number = 0
*sign_flag = 1;
} else if (number < 0) {
*sign_flag = -1;
}
else {
*sign_flag = 0; // gère le cas où number est 0
}
Frama_C_show_each_set_flag(number, *sign_flag);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment