Fix font count in Inkscape's win32 pdf export

Fix win32 hash comparison, where unsigned long is shorter than
uintptr_t. Follow-up to 9fbf427548.
This commit is contained in:
Nathan Lee 2022-03-09 12:43:42 +11:00
parent 1fee5ac985
commit 82119ec2f3
2 changed files with 3 additions and 3 deletions

View file

@ -340,7 +340,7 @@ _cairo_hash_table_lookup (cairo_hash_table_t *hash_table,
{
cairo_hash_entry_t *entry;
unsigned long table_size, i, idx, step;
unsigned long hash = key->hash;
uintptr_t hash = key->hash;
entry = hash_table->cache[hash & 31];
if (entry && entry->hash == hash && hash_table->keys_equal (key, entry))

View file

@ -117,8 +117,8 @@ struct _cairo_observer {
*
* A #cairo_hash_entry_t contains both a key and a value for
* #cairo_hash_table_t. User-derived types for #cairo_hash_entry_t must
* be type-compatible with this structure (eg. they must have an
* unsigned long as the first parameter. The easiest way to get this
* be type-compatible with this structure (eg. they must have a
* uintptr_t as the first parameter. The easiest way to get this
* is to use:
*
* typedef _my_entry {