Fix return cast (#554)

This commit is contained in:
Michael Miller
2022-01-07 11:53:02 -08:00
committed by GitHub
parent 1f109e9a24
commit 269edf0317

View File

@@ -36,7 +36,7 @@ public:
}
static uint16_t Correct(uint16_t value)
{
return static_cast<uint8_t>(65535.0f * NeoEase::Gamma(value / 65535.0f) + 0.5f);
return static_cast<uint16_t>(65535.0f * NeoEase::Gamma(value / 65535.0f) + 0.5f);
}
};