From 1870b5d8931e1645a94ceac8ec07b7880fc16690 Mon Sep 17 00:00:00 2001 From: Oldes Date: Wed, 25 Apr 2018 17:55:07 +0200 Subject: [PATCH] FIX: preventing assignment from incompatible pointer type warning --- src/os/host-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/host-main.c b/src/os/host-main.c index b7ae869365..d6c8859966 100644 --- a/src/os/host-main.c +++ b/src/os/host-main.c @@ -235,7 +235,7 @@ int APIENTRY WinMain(HINSTANCE inst, HINSTANCE prior, LPSTR cmd, int show) { REBCHR **argv; App_Instance = inst; #else -int main(int argc, char **argv) { +int main(int argc, REBCHR **argv) { // Retrieves the window handle used by the console associated with the calling process HWND hwndC = GetConsoleWindow(); // Then we could just get the HINSTANCE: @@ -246,7 +246,7 @@ int main(int argc, char **argv) { // Use title string as defined in resources file (.rc) with hardcoded ID 101 LoadStringW(App_Instance, 101, App_Title, MAX_TITLE_LENGTH); #else //non Windows platforms -int main(int argc, char **argv) { +int main(int argc, REBCHR **argv) { #endif REBYTE vers[8]; REBINT n; @@ -257,7 +257,7 @@ int main(int argc, char **argv) { Host_Lib = &Host_Lib_Init; - Parse_Args(argc, (REBCHR **)argv, &Main_Args); + Parse_Args(argc, argv, &Main_Args); vers[0] = 5; // len RL_Version(&vers[0]);