mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Fix procedure casting; SUBSYSTEM to CONSOLE in linker
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user