mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qfcc] Allow assignment of arrays to void pointers
I guess it just never came up until now.
This commit is contained in:
parent
717cbaff87
commit
8e1883a306
1 changed files with 2 additions and 1 deletions
|
@ -1253,7 +1253,8 @@ type_assignable (const type_t *dst, const type_t *src)
|
||||||
return 1;
|
return 1;
|
||||||
// pointer = array
|
// pointer = array
|
||||||
if (is_ptr (dst) && is_array (src)) {
|
if (is_ptr (dst) && is_array (src)) {
|
||||||
if (dst->t.fldptr.type == src->t.array.type)
|
if (is_void (dst->t.fldptr.type)
|
||||||
|
|| dst->t.fldptr.type == src->t.array.type)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue