From b35f6ee7234af7a4872b434875de8d761b09ebe9 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sun, 8 Dec 2013 22:11:50 +0100 Subject: [PATCH] Pssst, compiler! --- phpdbg_bp.c | 4 ++-- phpdbg_cmd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.40.0