mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Fixed compilation with GCC/Clang
src/scripting/backend/codegen.cpp:317:35: error: cannot initialize return object of type 'FxExpression *' with an rvalue of type 'bool'
This commit is contained in:
parent
b416322032
commit
0130fc27cc
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ static bool AreCompatiblePointerTypes(PType *dest, PType *source, bool forcompar
|
|||
|
||||
static FxExpression *StringConstToChar(FxExpression *basex)
|
||||
{
|
||||
if (!basex->isConstant()) return false;
|
||||
if (!basex->isConstant()) return nullptr;
|
||||
// Allow single character string literals be convertible to integers.
|
||||
// This serves as workaround for not being able to use single quoted literals because those are taken for names.
|
||||
ExpVal constval = static_cast<FxConstant *>(basex)->GetValue();
|
||||
|
|
Loading…
Reference in a new issue