|
Message-ID: <20140725141522.GB10402@port70.net> Date: Fri, 25 Jul 2014 16:15:22 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: C11 threads * Morten Welinder <mwelinder@...il.com> [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.