uintptr_t key,data;
xbt_dict_cursor_t cursor;
xbt_dict_foreach(msg_sizes,cursor,key,data) {
- fprintf(out,"%ld %ld\n",key,data);
+ fprintf(out,"%ld %ld\n",(long unsigned)key,(long unsigned)data);
}
fclose(out);
}
xbt_dictelm_t current, previous = NULL;
xbt_assert(dict);
- DEBUG5("ADD %ld->%ld; hash = %d, size = %d, & = %d", key, data, hash_code,
+ DEBUG5("ADD %zu->%zu; hash = %d, size = %d, & = %d", key, data, hash_code,
dict->table_size, hash_code & dict->table_size);
current = dict->table[hash_code & dict->table_size];
while (current != NULL &&
}
if (current == NULL)
- THROW1(not_found_error, 0, "key %ld not found", key);
+ THROW1(not_found_error, 0, "key %zu not found", key);
if (previous != NULL) {
previous->next = current->next;