Merge pull request #1349 from colobot/dev-fix-abs

Fix warning regarding mismatched parameter types
pyro-refactor
Emxx52 2020-08-27 00:53:45 +02:00 committed by GitHub
commit a4cfe616a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());