From 164c40c128b1105ebe3320f0a80dcbc1d46cdccb Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Sat, 30 Nov 2024 20:59:35 -0500 Subject: [PATCH] Cast to int64_t when reporting the light level to Tracy --- src/libretro/input/solar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libretro/input/solar.cpp b/src/libretro/input/solar.cpp index aebd9e38..1e67d6f7 100644 --- a/src/libretro/input/solar.cpp +++ b/src/libretro/input/solar.cpp @@ -146,7 +146,7 @@ void SolarSensorState::Apply(melonDS::NDS& nds) const noexcept { // Taken from the mgba core's use of the light sensor // (I don't actually know how this math works) uint8_t lightLevel = static_cast(cbrtf(*_lux) * 8); - TracyPlot("Solar Sensor Light Level", lightLevel); + TracyPlot("Solar Sensor Light Level", static_cast(lightLevel)); solarcart->SetLightLevel(lightLevel); } else {