mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
[script] Handle -0 in float comparisons correctly
This commit is contained in:
parent
4a6ba0212e
commit
8786b2eba6
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ static script_obj* script_evaluate_cmp (script_state* state, script_exp* exp)
|
|||
}
|
||||
if(valset){
|
||||
if (val < 0) {lt = 1; ne = 1;}
|
||||
if (val == 0) eq = 1;
|
||||
if (fabsf(val) == 0) eq = 1;
|
||||
if (val > 0) {gt = 1; ne = 1;}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue