Bug 859021 followup: Add missing "f" suffixes for float-valued numeric literals, even where it's not strictly required by MSVC build warnings.

This commit is contained in:
Daniel Holbert 2013-04-08 15:06:28 -07:00
Родитель a0a4661570
Коммит d3897ff497
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -720,12 +720,12 @@ GenerateNormal(float *N, const uint8_t *data, int32_t stride,
{ { -1, -2, 0}, { 1, 2, 0}, { 0, 0, 0} } } };
static const float FACTORx[3][3] =
{ { 2.0f / 3.0f, 1.0f / 3.0f, 2.0f / 3.0f },
{ 1.0 / 2.0, 1.0 / 4.0, 1.0 / 2.0 },
{ 1.0f / 2.0f, 1.0f / 4.0f, 1.0f / 2.0f },
{ 2.0f / 3.0f, 1.0f / 3.0f, 2.0f / 3.0f } };
static const float FACTORy[3][3] =
{ { 2.0f / 3.0f, 1.0 / 2.0, 2.0f / 3.0f },
{ 1.0f / 3.0f, 1.0 / 4.0, 1.0f / 3.0f },
{ 2.0f / 3.0f, 1.0 / 2.0, 2.0f / 3.0f } };
{ { 2.0f / 3.0f, 1.0f / 2.0f, 2.0f / 3.0f },
{ 1.0f / 3.0f, 1.0f / 4.0f, 1.0f / 3.0f },
{ 2.0f / 3.0f, 1.0f / 2.0f, 2.0f / 3.0f } };
// degenerate cases
if (surfaceWidth == 1 || surfaceHeight == 1) {