diff options
author | Ran Benita <ran@unusedvar.com> | 2019-11-09 11:33:45 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-11-09 11:33:45 +0200 |
commit | a5f95c2b3c9de5ba46c8f591ed00507b4f05a8e8 (patch) | |
tree | 38256127da2df199c4649e04cc6b5e9f6b749145 /src | |
parent | 8ea4a001d1979c99db28a280489a95906fe43048 (diff) | |
download | xorg-lib-libxkbcommon-a5f95c2b3c9de5ba46c8f591ed00507b4f05a8e8.tar.gz |
atom: use explicit size for fingerprint
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/atom.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |