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;
}