mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-09 00:21:32 +08:00
[WRAPPERHELPER] Fixed a small issue with the parser
This commit is contained in:
parent
4add55aa45
commit
02423c2d7d
@ -900,7 +900,7 @@ int type_copy_into(type_t *dest, const type_t *ref) {
|
|||||||
if (ref->val.fun.nargs != (size_t)-1) {
|
if (ref->val.fun.nargs != (size_t)-1) {
|
||||||
if (!ref->val.fun.args) {
|
if (!ref->val.fun.args) {
|
||||||
dest->typ = TYPE_BUILTIN;
|
dest->typ = TYPE_BUILTIN;
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
type_t **args = malloc(sizeof *args * ref->val.fun.nargs);
|
type_t **args = malloc(sizeof *args * ref->val.fun.nargs);
|
||||||
if (!args) {
|
if (!args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user