From: Bob Weinand Date: Sun, 8 Dec 2013 21:11:50 +0000 (+0100) Subject: Pssst, compiler! X-Git-Tag: php-5.6.0alpha1~110^2~24^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b35f6ee7234af7a4872b434875de8d761b09ebe9;p=php Pssst, compiler! --- diff --git a/phpdbg_bp.c b/phpdbg_bp.c index 3c0f198526..50580a5f5f 100644 --- a/phpdbg_bp.c +++ b/phpdbg_bp.c @@ -601,7 +601,7 @@ static inline zend_bool phpdbg_find_breakpoint_param(phpdbg_param_t *param, zend } break; case FILE_PARAM: { - if ((param->file.line == zend_get_executed_lineno(TSRMLS_C))) { + if (param->file.line == zend_get_executed_lineno(TSRMLS_C)) { const char *str = zend_get_executed_filename(TSRMLS_C); size_t lengths[2] = {strlen(param->file.name), strlen(str)}; @@ -640,7 +640,7 @@ static inline zend_bool phpdbg_find_breakpoint_param(phpdbg_param_t *param, zend } break; case ADDR_PARAM: { - return ((phpdbg_opline_ptr_t)execute_data->opline == param->addr); + return ((zend_ulong)(phpdbg_opline_ptr_t)execute_data->opline == param->addr); } break; case NUMERIC_PARAM: diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 543c01c6f0..d48624aa75 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -147,7 +147,7 @@ PHPDBG_API char* phpdbg_param_tostring(const phpdbg_param_t *param, char **point case FILE_PARAM: asprintf(pointer, - "%s:%u", + "%s:%lu", param->file.name, param->file.line); break;