File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -714,8 +714,7 @@ PHP_FUNCTION(pcntl_signal)
714
714
if (!PCNTL_G (spares )) {
715
715
/* since calling malloc() from within a signal handler is not portable,
716
716
* pre-allocate a few records for recording signals */
717
- int i ;
718
- for (i = 0 ; i < PCNTL_G (num_signals ); i ++ ) {
717
+ for (unsigned int i = 0 ; i < PCNTL_G (num_signals ); i ++ ) {
719
718
struct php_pcntl_pending_signal * psig ;
720
719
721
720
psig = emalloc (sizeof (* psig ));
@@ -903,7 +902,7 @@ PHP_FUNCTION(pcntl_sigprocmask)
903
902
RETURN_THROWS ();
904
903
}
905
904
906
- for (int signal_no = 1 ; signal_no < PCNTL_G (num_signals ); ++ signal_no ) {
905
+ for (unsigned int signal_no = 1 ; signal_no < PCNTL_G (num_signals ); ++ signal_no ) {
907
906
if (sigismember (& old_set , signal_no ) != 1 ) {
908
907
continue ;
909
908
}
@@ -1656,7 +1655,7 @@ PHP_FUNCTION(pcntl_setcpuaffinity)
1656
1655
1657
1656
// 0 == getpid in this context, we're just saving a syscall
1658
1657
pid = pid_is_null ? 0 : pid ;
1659
- zend_ulong maxcpus = ( zend_ulong ) sysconf (_SC_NPROCESSORS_CONF );
1658
+ zend_long maxcpus = sysconf (_SC_NPROCESSORS_CONF );
1660
1659
PCNTL_CPU_ZERO (mask );
1661
1660
1662
1661
ZEND_HASH_FOREACH_VAL (Z_ARRVAL_P (hmask ), ncpu ) {
You can’t perform that action at this time.
0 commit comments