atom: use explicit size for fingerprint

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-11-09 11:33:45 +02:00
parent 8ea4a001d1
commit a5f95c2b3c
1 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@
struct atom_node {
xkb_atom_t left, right;
unsigned int fingerprint;
uint32_t fingerprint;
char *string;
};
@ -125,10 +125,10 @@ atom_text(struct atom_table *table, xkb_atom_t atom)
static bool
find_atom_pointer(struct atom_table *table, const char *string, size_t len,
xkb_atom_t **atomp_out, unsigned int *fingerprint_out)
xkb_atom_t **atomp_out, uint32_t *fingerprint_out)
{
xkb_atom_t *atomp = &table->root;
unsigned int fingerprint = 0;
uint32_t fingerprint = 0;
bool found = false;
for (size_t i = 0; i < (len + 1) / 2; i++) {
@ -187,7 +187,7 @@ atom_intern(struct atom_table *table, const char *string, size_t len)
{
xkb_atom_t *atomp;
struct atom_node node;
unsigned int fingerprint;
uint32_t fingerprint;
if (!string)
return XKB_ATOM_NONE;