Bug fix
This commit is contained in:
@@ -207,7 +207,7 @@ int type_is_castable(Type *from, Type *to) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(from->type == TYPE_TYPE_PRIMITIVE && to->type == TYPE_TYPE_POINTER) {
|
if(from->type == TYPE_TYPE_PRIMITIVE && to->type == TYPE_TYPE_POINTER || from->type == TYPE_TYPE_POINTER && to->type == TYPE_TYPE_PRIMITIVE) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user