Skip to content

Commit

Permalink
Workaround bug in dmd: common type of string literal and null does no…
Browse files Browse the repository at this point in the history
…t convert to const char *
  • Loading branch information
yebblies committed May 9, 2013
1 parent 75d3660 commit cbbbe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/func.c
Expand Up @@ -855,7 +855,7 @@ void FuncDeclaration::semantic(Scope *sc)
static bool printedMain = false; // semantic might run more than once
if (global.params.verbose && !printedMain)
{
const char *type = isMain() ? "main" : isWinMain() ? "winmain" : isDllMain() ? "dllmain" : NULL;
const char *type = isMain() ? "main" : isWinMain() ? "winmain" : isDllMain() ? "dllmain" : (const char *)NULL;
Module *mod = sc->module;

if (type && mod)
Expand Down

0 comments on commit cbbbe81

Please sign in to comment.