The length of an atom string cannot be negative. So make it
explicit and declare it as an unsigned value.
The shift width in a mark table node also cannot be negative.
I'm also moving it to after the pointer arrays to prevent any
possible alignment problems on a 64 bit system.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
union {
struct object_entry *marked[1024];
struct mark_set *sets[1024];
} data;
union {
struct object_entry *marked[1024];
struct mark_set *sets[1024];
} data;
struct atom_str
{
struct atom_str *next_atom;
struct atom_str
{
struct atom_str *next_atom;
char str_dat[FLEX_ARRAY]; /* more */
};
char str_dat[FLEX_ARRAY]; /* more */
};
struct branch *table_next_branch;
struct branch *active_next_branch;
const char *name;
struct branch *table_next_branch;
struct branch *active_next_branch;
const char *name;
- unsigned long last_commit;
struct tree_entry branch_tree;
struct tree_entry branch_tree;
+ unsigned long last_commit;
unsigned int pack_id;
unsigned char sha1[20];
};
unsigned int pack_id;
unsigned char sha1[20];
};