diff options
| author | Wez Furlong <wez@php.net> | 2001-05-29 10:14:46 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2001-05-29 10:14:46 +0000 |
| commit | 8b5edf1a9ec55585f540b8b2c552d6360659a04d (patch) | |
| tree | 1937ea584194532ac3a372e270c550855e70b9e3 | |
| parent | 0c5d5a513b8291d80d57cef61d2b14d92ae82809 (diff) | |
| download | php-git-8b5edf1a9ec55585f540b8b2c552d6360659a04d.tar.gz | |
Fix compile warning
| -rw-r--r-- | ext/standard/html.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c index 6c967b5958..8921663633 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -117,7 +117,7 @@ inline static unsigned short get_next_char(enum entity_charset charset, int mbpos = 0; unsigned short this_char = str[pos++]; - mbseq[mbpos++] = this_char; + mbseq[mbpos++] = (unsigned char)this_char; if (charset == cs_utf_8) { unsigned long utf = 0; @@ -142,7 +142,7 @@ inline static unsigned short get_next_char(enum entity_charset charset, /* last byte in sequence */ more = 0; utf |= (this_char & 0x3f); - this_char = utf; + this_char = (unsigned short)utf; break; case 0x20: /* 3, 2nd */ case 0x31: /* 4, 3rd */ @@ -196,7 +196,7 @@ inline static unsigned short get_next_char(enum entity_charset charset, if (more) { this_char = str[pos++]; - mbseq[mbpos++] = this_char; + mbseq[mbpos++] = (unsigned char)this_char; } } while(more); } @@ -336,7 +336,7 @@ PHPAPI char *php_escape_html_entities(unsigned char *old, int oldlen, int *newle memcpy(new + len, mbsequence, mbseqlen); len += mbseqlen; } else { - new [len++] = this_char; + new [len++] = (unsigned char)this_char; } } } |
