| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/audio/dexed/files/ |
Upload File : |
- from Bug 265342 - audio/dexed: fix build on armv7 arm64
--- Source/PluginData.cpp.orig 2022-07-20 04:30:35 UTC
+++ Source/PluginData.cpp
@@ -103,18 +103,14 @@ void Cartridge::packProgram(uint8_t *src, int idx, Str
* This function normalize data that comes from corrupted sysex.
* It used to avoid engine crashing upon extreme values
*/
-char normparm(char value, char max, int id) {
- if ( value <= max && value >= 0 )
+uint8_t normparm(uint8_t value, uint8_t max, int id) {
+ if ( value <= max )
return value;
// if this is beyond the max, we expect a 0-255 range, normalize this
// to the expected return value; and this value as a random data.
- value = abs(value);
-
- char v = ((float)value)/255 * max;
-
- return v;
+ return ((float)value)/255 * max;
}
void Cartridge::unpackProgram(uint8_t *unpackPgm, int idx) {