]> granicus.if.org Git - php/commit
Fix function signature mismatches in GMP
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 15 Apr 2020 08:28:48 +0000 (10:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 15 Apr 2020 09:01:12 +0000 (11:01 +0200)
commit2d517f68fb0a48aa342fdf22fb3c9f21686b8dd5
treeb330966371c60934465b8d611e122556390f5782
parent4d5ad3fb24fa325ebb1cf6b590a9b965f9c5d668
Fix function signature mismatches in GMP

This is fairly annoying. Add adapter functions for cases where
we are discarding a return value.

Some of the issues are legitimate in that we were previously
truncating some unsigned long return values to int implicitly,
though I doubt it makes a difference in practice.

This fixes -Wcast-function-type warnings.
ext/gmp/gmp.c