From b40d333aa8a80f76263aad21875be6d94b7dcbc2 Mon Sep 17 00:00:00 2001 From: Churkin Aleksey Date: Wed, 2 Sep 2026 12:25:45 +0300 Subject: [PATCH] drop the needStringCast fixup daScript substitutes "" for a null daslang string on every bind now - interpreter, AOT and JIT alike - so Function::needStringCast is gone and the scan which set it has nothing left to do. The float2/float4 by-value fixup in the same loop stays. Needs https://github.com/GaijinEntertainment/daScript/pull/3921 --- src/cb_dasIMPLOT.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cb_dasIMPLOT.h b/src/cb_dasIMPLOT.h index 910e4b5..861b54c 100644 --- a/src/cb_dasIMPLOT.h +++ b/src/cb_dasIMPLOT.h @@ -30,19 +30,12 @@ struct implotTempFn { fn->result->temporary = true; } } - bool anyString = false; for ( auto &arg : fn->arguments ) { if ( arg->type->constant && arg->type->ref && !arg->type->isArray() ) { if ( arg->type->baseType == Type::tFloat2 || arg->type->baseType == Type::tFloat4 ) { arg->type->ref = false; } } - if ( arg->type->isString() && !arg->type->ref ) { - anyString = true; - } - } - if (anyString) { - fn->needStringCast = true; } return true; }