Mercurial > public > ostc4
diff Discovery/Src/tInfoPreDive.c @ 994:bad5561c0c59 GasConsumption
Fix a compilation error occurring on non-Windows platforms, caused by incorrect case in '#include' file names.
Also fix some compiler warnings from non-safe use of 'memcpy'. (mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 27 Apr 2025 09:56:22 +0200 |
| parents | fce639612464 |
| children |
line wrap: on
line diff
--- a/Discovery/Src/tInfoPreDive.c Fri Apr 25 08:26:03 2025 +0200 +++ b/Discovery/Src/tInfoPreDive.c Sun Apr 27 09:56:22 2025 +0200 @@ -70,7 +70,7 @@ } else { - memcpy (&pressureHistory[0],&pressureHistory[2],sizeof(pressureHistory) - 2); + memmove(&pressureHistory[0], &pressureHistory[2], sizeof(pressureHistory) - 2); pressureHistory[pressureHistoryIndex] = newValue; } } @@ -87,7 +87,7 @@ } else { - memcpy (&temperatureHistory[0],&temperatureHistory[2],sizeof(temperatureHistory) - 2); + memmove(&temperatureHistory[0], &temperatureHistory[2], sizeof(temperatureHistory) - 2); temperatureHistory[temperatureHistoryIndex] = newValue; } }
