Commit 79f6c1c
committed
linux-pipewire: camera-portal: More robust size comparison
Cast the width to `uint64_t` before calculating the area of the
rectangle, and instead of subtracting the two, go through the cases
and return the result accordingly.1 parent 2b613f4 commit 79f6c1c
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | 506 | | |
509 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
510 | 515 | | |
511 | 516 | | |
512 | 517 | | |
| |||
0 commit comments