Skip to content

Commit

Permalink
Cast to int64_t when reporting the light level to Tracy
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Dec 1, 2024
1 parent d921cd8 commit 164c40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libretro/input/solar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t>(cbrtf(*_lux) * 8);
TracyPlot("Solar Sensor Light Level", lightLevel);
TracyPlot("Solar Sensor Light Level", static_cast<int64_t>(lightLevel));
solarcart->SetLightLevel(lightLevel);
}
else {
Expand Down

0 comments on commit 164c40c

Please sign in to comment.