Fix procedure casting; SUBSYSTEM to CONSOLE in linker

This commit is contained in:
Ginger Bill
2016-12-09 00:24:12 +00:00
parent 0d69dfcde6
commit e8b4228833
4 changed files with 44 additions and 16 deletions
+4
View File
@@ -1880,6 +1880,10 @@ bool check_is_castable_to(Checker *c, Operand *operand, Type *y) {
if (is_type_proc(xb) && is_type_rawptr(yb)) {
return true;
}
// rawptr -> proc
if (is_type_rawptr(xb) && is_type_proc(yb)) {
return true;
}
return false;
}
+1 -1
View File
@@ -232,7 +232,7 @@ int main(int argc, char **argv) {
exit_code = win32_exec_command_line_app("msvc-link", true,
"link %.*s.obj -OUT:%.*s.%s %s "
"/defaultlib:libcmt "
"/nologo /incremental:no /opt:ref /subsystem:WINDOWS "
"/nologo /incremental:no /opt:ref /subsystem:CONSOLE "
" %.*s "
" %s "
"",