-
Notifications
You must be signed in to change notification settings - Fork 21
Description
now there are errors during compilation
/tmp/pear/temp/decimal/src/decimal.c: At top level: /tmp/pear/temp/decimal/src/arginfo.h:65:60: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] {(const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(PHP_DECIMAL_RATIONAL_FQCN, 0), 0, 0}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/decimal.c:995:1: note: in expansion of macro 'PHP_DECIMAL_ARGINFO_RETURN_RATIONAL' PHP_DECIMAL_ARGINFO_RETURN_RATIONAL(Decimal, toRational, 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/arginfo.h:65:60: note: (near initialization for 'php_decimal_arginfo_Decimal_toRational[0].type.ptr') {(const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(PHP_DECIMAL_RATIONAL_FQCN, 0), 0, 0}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/decimal.c:995:1: note: in expansion of macro 'PHP_DECIMAL_ARGINFO_RETURN_RATIONAL' PHP_DECIMAL_ARGINFO_RETURN_RATIONAL(Decimal, toRational, 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/arginfo.h:65:60: error: initializer element is not constant {(const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(PHP_DECIMAL_RATIONAL_FQCN, 0), 0, 0}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/decimal.c:995:1: note: in expansion of macro 'PHP_DECIMAL_ARGINFO_RETURN_RATIONAL' PHP_DECIMAL_ARGINFO_RETURN_RATIONAL(Decimal, toRational, 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pear/temp/decimal/src/arginfo.h:65:60: note: (near initialization for 'php_decimal_arginfo_Decimal_toRational[0].type.ptr') {(const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(PHP_DECIMAL_RATIONAL_FQCN, 0), 0, 0}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~