com php-src: add parentheses: win32/codepage.c
| From: | Anatol Belski | Date: | Sat, 27 Aug 2016 20:26:18 +0000 |
| Subject: | com php-src: add parentheses: win32/codepage.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94083@lists.php.net to get a copy of this message | ||
Commit: b6440a74c18d9138214e6c621dd3dd919937e9bf
Author: Anatol Belski <ab@php.net> Sat, 27 Aug 2016 22:26:18 +0200
Parents: 8a8a4419722f7cfe6f897d868cbbfd1e85273f66
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b6440a74c18d9138214e6c621dd3dd919937e9bf
Log:
add parentheses
Changed paths:
M win32/codepage.c
Diff:
diff --git a/win32/codepage.c b/win32/codepage.c
index d929130..cddd946 100644
--- a/win32/codepage.c
+++ b/win32/codepage.c
@@ -35,7 +35,7 @@ __forceinline static wchar_t *php_win32_cp_to_w_int(const char* in, size_t in_le
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
return NULL;
}
- assert(in_len ? in[in_len] == L'\0' : 1);
+ assert(in_len ? (in[in_len] == L'\0') : 1);
tmp_len = !in_len ? -1 : (int)in_len + 1;