com php-src: fix compilation warning: sapi/cli/ps_title.c
| From: | Anatol Belski | Date: | Fri, 10 Oct 2014 17:00:17 +0000 |
| Subject: | com php-src: fix compilation warning: sapi/cli/ps_title.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82246@lists.php.net to get a copy of this message | ||
Commit: 3942ed52bed9bdddf67e0a4df50ee3d8d5139001
Author: Anatol Belski <ab@php.net> Thu, 9 Oct 2014 08:49:55 +0200
Parents: af3354dc43ae3c4bc6c9a9fb74aee2d9c2f406e3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3942ed52bed9bdddf67e0a4df50ee3d8d5139001
Log:
fix compilation warning
Changed paths:
M sapi/cli/ps_title.c
Diff:
diff --git a/sapi/cli/ps_title.c b/sapi/cli/ps_title.c
index 0be94e3..97eec86 100644
--- a/sapi/cli/ps_title.c
+++ b/sapi/cli/ps_title.c
@@ -386,7 +386,7 @@ int get_ps_title(int *displen, const char** string)
return rc;
#ifdef PS_USE_WIN32
- if (!(ps_buffer_cur_len = GetConsoleTitle(ps_buffer, ps_buffer_size)))
+ if (!(ps_buffer_cur_len = GetConsoleTitle(ps_buffer, (DWORD)ps_buffer_size)))
return PS_TITLE_WINDOWS_ERROR;
#endif
*displen = (int)ps_buffer_cur_len;