From 8084b083da1ce01ed7445ff58716a5ea32d38589 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 21:34:41 +0800 Subject: [PATCH] Fixed implementation of VariableDeclarationExpression::loadNativeFunction() for Windows target. --- src/n8/ast/expression/VariableDeclarationExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 957dddb..0aa8cfa 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -92,7 +92,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( std::wstring parentPath(path.parent_path().string().c_str()); handle = LoadLibraryA(library.c_str()); - SetDllDirectoryW(parentPath.c_str()); + SetDllDirectoryW(static_cast(parentPath.c_str())); #elif defined(__APPLE__) handle = dlopen(library.c_str(), RTLD_LAZY);