Skip to content

Commit

Permalink
fix clang++ build error, first argument of main must be int
Browse files Browse the repository at this point in the history
- explicitly convert to size_t
  • Loading branch information
MartinNowak committed Jan 21, 2014
1 parent c933324 commit e6034ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mars.c
Expand Up @@ -391,7 +391,7 @@ extern "C"
}
#endif

int main(size_t argc, char *argv[])
int main(int iargc, char *argv[])
{
mem.init(); // initialize storage allocator
mem.setStackBottom(&argv);
Expand All @@ -404,6 +404,7 @@ int main(size_t argc, char *argv[])
char *p;
Module *m;
int status = EXIT_SUCCESS;
size_t argc = iargc;
size_t argcstart = argc;
int setdebuglib = 0;
int setdefaultlib = 0;
Expand Down

0 comments on commit e6034ed

Please sign in to comment.