Fix declaring variable on same line after array
int a[5], b; b would get a size of |0| on the stack instead of a sizeof(cell_t). Bug: https://bugs.alliedmods.net/show_bug.cgi?id=6335
This commit is contained in:
parent
8f0067b3b4
commit
9a26ae0526
@ -3478,10 +3478,9 @@ static int reparse_new_decl(declinfo_t *decl, int flags)
|
||||
//
|
||||
// Reset the fact that we saw an array.
|
||||
decl->type.numdim = 0;
|
||||
decl->type.size = 0;
|
||||
decl->type.enumroot = NULL;
|
||||
decl->type.ident = iVARIABLE;
|
||||
decl->type.size = 0;
|
||||
decl->type.size = 1;
|
||||
decl->type.has_postdims = false;
|
||||
if (matchtoken('['))
|
||||
parse_old_array_dims(decl, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user