/* Add new handle to container */
g_hash_table_insert(ctx->trace_handles,
- (gpointer) (unsigned long) handle->id,
+ GUINT_TO_POINTER(handle->id),
handle);
return handle->id;
* automatically.
*/
if (!g_hash_table_remove(ctx->trace_handles,
- (gpointer) (unsigned long) handle_id)) {
+ GUINT_TO_POINTER(handle_id))) {
ret = -ENOENT;
goto end;
}