Add missing {}s to conditionals & loops

This was necessary after:
44257cb8 apply clang-format

Which made some single-line statements into multi-line. Using braces on
multi-line statements better conforms with the Google style guide.

Bug: 433996651
Change-Id: I615c0ecf3b94571f67fceadfe8c15914aea45ccb
This commit is contained in:
James Zern
2025-08-20 16:22:29 -07:00
parent dab2cf21fa
commit 235286fd78
5 changed files with 31 additions and 23 deletions

View File

@@ -121,10 +121,11 @@ static uint16_t FromLinearSrgb(uint32_t value, int bit_depth) {
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
static WEBP_INLINE float Roundf(float x) {
if (x < 0)
if (x < 0) {
return (float)ceil((double)(x - 0.5f));
else
} else {
return (float)floor((double)(x + 0.5f));
}
}
static WEBP_INLINE float Powf(float base, float exp) {