diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 2ceeefe..1a59555 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -88,9 +88,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) std::filesystem::path path(library); - std::string parentFolder = path - .parent_path() - .string(); + std::string parentFolder = path.parent_path(); std::wstring searchPath = parentFolder.wstring(); SetDllDirectoryW(searchPath.c_str());