summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2104838)
raw | patch | inline | side by side (parent: 2104838)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 17 Jan 2007 05:57:23 +0000 (00:57 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 17 Jan 2007 06:13:22 +0000 (01:13 -0500) |
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>
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>
fast-import.c | patch | blob | history |
diff --git a/fast-import.c b/fast-import.c
index f1b26d103f0549f86e1194e5c790af36c9fc2faa..2c500d6be32e8b83e8c7bd0c3768f3b9e6a08907 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
struct mark_set
{
- int shift;
union {
struct object_entry *marked[1024];
struct mark_set *sets[1024];
} data;
+ unsigned int shift;
};
struct last_object
struct atom_str
{
struct atom_str *next_atom;
- int str_len;
+ unsigned int str_len;
char str_dat[FLEX_ARRAY]; /* more */
};
struct branch *table_next_branch;
struct branch *active_next_branch;
const char *name;
- unsigned long last_commit;
struct tree_entry branch_tree;
+ unsigned long last_commit;
unsigned int pack_id;
unsigned char sha1[20];
};