Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 25 Jul 2014 16:15:22 +0200
From: Szabolcs Nagy <>
Subject: Re: C11 threads

* Morten Welinder <> [2014-07-25 09:42:52 -0400]:
> > the musl math library currently defines distinct long double [...]
> You cannot compare a "double" function pointer to a "long double"
> function pointer.  The types are incompatible, even if they have the
> same representation.
> Hence I don't believe a C program can even tell if they are the same.

conversion between incompatible function pointers is allowed

and i think == should work on converted pointers too:

void f(void) {}
void g(int x) {}
int h() {return f == (void(*)(void))g;}

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.