diff options
| author | kipcode66 <kipcode66@gmail.com> | 2026-01-12 17:48:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 00:48:25 +0200 |
| commit | dd03bf861fdc92109c57d58cc7436066a8a02430 (patch) | |
| tree | cd4044941bb8f661d3b5c018ed94cb18ff650cc6 /src/Z2AudioLib/Z2Calc.cpp | |
| parent | 53aaed17c0a635c8f5542c2b2aeaa65f63c734c4 (diff) | |
standard compiler compatibility changes (#3040)
* move math to cmath
* replace stdarg to cstdarg
* change stdint to stdint.h
* minor fixes
* change stdio to cstdio
* change stdlib to stdlib
* renamed ctype to cctype
* fix missing argument for UNSET_FLAG
Diffstat (limited to 'src/Z2AudioLib/Z2Calc.cpp')
| -rw-r--r-- | src/Z2AudioLib/Z2Calc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Z2AudioLib/Z2Calc.cpp b/src/Z2AudioLib/Z2Calc.cpp index a55a14c753..0082ca0e9b 100644 --- a/src/Z2AudioLib/Z2Calc.cpp +++ b/src/Z2AudioLib/Z2Calc.cpp @@ -1,6 +1,6 @@ #include "Z2AudioLib/Z2Calc.h" #include "JSystem/JMath/random.h" -#include <math> +#include <cmath> f32 Z2Calc::linearTransform(f32 inValue, f32 inMin, f32 inMax, f32 outMin, f32 outMax, bool noClamp) { f32 transformed = outMin + ((inValue - inMin) * ((outMax - outMin) / (inMax - inMin))); |
