diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-07-22 21:51:48 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-07-22 21:51:48 +0000 |
commit | 867523f4cc416248c53bfa96f1ac89dff0f1ca31 (patch) | |
tree | a468511a1567f094e340cbf973120a4b8ab2fd72 /plugins/MirOTR/src/entities.cpp | |
parent | 3ac7fd602fa012ee8277d005249b246dd2fa4212 (diff) |
MirOTR: vc2015 compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/entities.cpp')
-rw-r--r-- | plugins/MirOTR/src/entities.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/src/entities.cpp b/plugins/MirOTR/src/entities.cpp index 916bebd608..6a7d0aec1b 100644 --- a/plugins/MirOTR/src/entities.cpp +++ b/plugins/MirOTR/src/entities.cpp @@ -317,7 +317,7 @@ static size_t putc_utf8(unsigned long cp, char *buffer) return 0; } -static _Bool parse_entity(const char *current, char **to, +static int parse_entity(const char *current, char **to, const char **from, size_t maxlen) { const char *end = (const char *)memchr(current, ';', maxlen); @@ -328,7 +328,7 @@ static _Bool parse_entity(const char *current, char **to, char *tail = NULL; errno = 0; - _Bool hex = current[2] == 'x' || current[2] == 'X'; + int hex = current[2] == 'x' || current[2] == 'X'; unsigned long cp = strtoul( current + (hex ? 3 : 2), &tail, hex ? 16 : 10); |