From 74b1c196f99b3e448eea47846db53eadf7e57a6d Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 13 Sep 2018 18:56:01 +0200 Subject: [PATCH] Treat invalid type name as error. --- engine/compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/compiler.c b/engine/compiler.c index 9d0dcf7..f4e76bd 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -2916,8 +2916,8 @@ static sxi32 PH7_GenStateCollectFuncArgs(ph7_vm_func *pFunc, ph7_gen_state *pGen } else if(nKey & PH7_KEYWORD_FLOAT) { sArg.nType = MEMOBJ_REAL; } else { - PH7_GenCompileError(&(*pGen), E_WARNING, pGen->pIn->nLine, - "Invalid argument type '%z',Automatic cast will not be performed", + PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, + "Unknown data type name '%z'", &pIn->sData); } } else {