Use int16_t max for pitch dumping and loading

This commit is contained in:
Jbleezy committed 2024-10-06 12:13:22 -07:00
1 parent 1fc31b8c44
commit 1774001598
2 files changed
+2 -2

No files matched your search

@@ -142,7 +142,7 @@ namespace
return false;
}
value = static_cast<uint16_t>(CentToHertz(centValue) * static_cast<float>(std::numeric_limits<uint16_t>::max()));
value = static_cast<uint16_t>(CentToHertz(centValue) * static_cast<float>(std::numeric_limits<int16_t>::max()));
return true;
}