From f08c67bef9bb70fa5a46ad36b966de8a954cfe2a Mon Sep 17 00:00:00 2001 From: tomangelo2 Date: Thu, 27 Aug 2020 00:28:03 +0200 Subject: [PATCH] Fix warning regarding mismatched parameter types --- src/CBot/stdlib/MathFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CBot/stdlib/MathFunctions.cpp b/src/CBot/stdlib/MathFunctions.cpp index ebe46545..f6e5b484 100644 --- a/src/CBot/stdlib/MathFunctions.cpp +++ b/src/CBot/stdlib/MathFunctions.cpp @@ -153,7 +153,7 @@ bool rAbs(CBotVar* var, CBotVar* result, int& exception, void* user) *result = fabs(var->GetValFloat()); break; case CBotTypLong: - *result = abs(var->GetValLong()); + *result = labs(var->GetValLong()); break; default: *result = abs(var->GetValInt());