0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-08 11:38:35 +02:00

Prevent ambiguous cast when the comparator function is overloaded.

This commit is contained in:
Jason Volk 2016-08-18 03:06:25 -07:00
parent 1e07182f3e
commit b7a84d3650

View file

@ -97,7 +97,11 @@ init_client(void)
rb_event_addish("exit_aborted_clients", exit_aborted_clients, NULL, 1);
rb_event_add("flood_recalc", flood_recalc, NULL, 1);
nd_dict = rb_dictionary_create("nickdelay", reinterpret_cast<int (*)(const void *, const void *)>(irccmp));
nd_dict = rb_dictionary_create("nickdelay", []
(const void *a, const void *b) -> int
{
return irccmp((const char *)a, (const char *)b);
});
}
/*