Skip to content

Commit

Permalink
FIX: preventing assignment from incompatible pointer type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Apr 25, 2018
1 parent 4c1fba8 commit 1870b5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/host-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
Expand All @@ -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]);
Expand Down

0 comments on commit 1870b5d

Please sign in to comment.