mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Fix [0] arrays
This commit is contained in:
parent
94b31a70a4
commit
378b8e9785
2 changed files with 6 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ typedef struct {
|
|||
// last bit is used as MARK-BIT, the rest are used to store address where object should move
|
||||
// last bit can be used because due to alignment we can assume that last two bits are always 0's
|
||||
ptrt forward_address;
|
||||
char contents[0];
|
||||
char contents[];
|
||||
} data;
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -95,7 +95,7 @@ typedef struct {
|
|||
// last bit can be used because due to alignment we can assume that last two bits are always 0's
|
||||
ptrt forward_address;
|
||||
auint tag;
|
||||
char contents[0];
|
||||
char contents[];
|
||||
} sexp;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue