mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 13:23:41 +00:00
fixed compiler warnings
This commit is contained in:
@@ -1961,7 +1961,7 @@ char* MeshAgent_MakeAbsolutePathEx(char *basePath, char *localPath, int escapeBa
|
|||||||
sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s\\%s", wd, basePath + i);
|
sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s\\%s", wd, basePath + i);
|
||||||
#else
|
#else
|
||||||
int i = ILibString_LastIndexOf(basePath, basePathLen, "/", 1) + 1;
|
int i = ILibString_LastIndexOf(basePath, basePathLen, "/", 1) + 1;
|
||||||
getcwd(ILibScratchPad, sizeof(ILibScratchPad));
|
ignore_result((uintptr_t)getcwd(ILibScratchPad, sizeof(ILibScratchPad)));
|
||||||
sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s/%s", ILibScratchPad, basePath + i);
|
sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s/%s", ILibScratchPad, basePath + i);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ duk_ret_t ILibDuktape_ChildProcess_execve(duk_context *ctx)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
duk_push_array(ctx); // [WCHAR_ARRAY]
|
duk_push_array(ctx); // [WCHAR_ARRAY]
|
||||||
args = (char**)ILibMemory_SmartAllocate(sizeof(char*) * (1 + duk_get_length(ctx, 1)));
|
args = (void**)ILibMemory_SmartAllocate(sizeof(char*) * (1 + duk_get_length(ctx, 1)));
|
||||||
for (i = 0; i < (int)duk_get_length(ctx, 1); ++i)
|
for (i = 0; i < (int)duk_get_length(ctx, 1); ++i)
|
||||||
{
|
{
|
||||||
duk_get_prop_index(ctx, 1, (duk_uarridx_t)i); // [WCHAR_ARRAY][arg]
|
duk_get_prop_index(ctx, 1, (duk_uarridx_t)i); // [WCHAR_ARRAY][arg]
|
||||||
|
|||||||
Reference in New Issue
Block a user