ffs problem in windows64

Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com
Tue Sep 23 12:54:00 GMT 2014


  Hi,

  I am almost done porting https://savannah.gnu.org/projects/lightning
to cygwin and windows64 abi. But I found a problem with the ffs function.

  The test case is simple:

$ cat x.c
extern int ffs(int);
int main(void) {
long l = 0x80000000;
int i = ffs((int)l);
return 0;
}

$ gcc -O0 -g3 x.c

$ ./a.exe
Segmentation fault (...)

Thanks,
Paulo

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list