summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbregex.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-04 18:59:19 +0000
committerMarcus Boerger <helly@php.net>2002-08-04 18:59:19 +0000
commit81df62526089f0ce04b95cdea12da074abbf009a (patch)
tree7e99354c70e899b17201591d38b99a4f49ab0249 /ext/mbstring/mbregex.c
parent06b5f1f54647d18461b573f6da82e6ac302c0f9e (diff)
downloadphp-git-81df62526089f0ce04b95cdea12da074abbf009a.tar.gz
-Fix warnings (fixed all?)
Diffstat (limited to 'ext/mbstring/mbregex.c')
-rw-r--r--ext/mbstring/mbregex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mbstring/mbregex.c b/ext/mbstring/mbregex.c
index 64dd8f20fa..ee8966283f 100644
--- a/ext/mbstring/mbregex.c
+++ b/ext/mbstring/mbregex.c
@@ -647,7 +647,7 @@ print_mbc(c)
/* Make sure we have at least N more bytes of space in buffer. */
#define GET_BUFFER_SPACE(n) \
do { \
- while (b - bufp->buffer + (n) >= bufp->allocated) \
+ while (b - bufp->buffer + (size_t)(n) >= (size_t)bufp->allocated) \
EXTEND_BUFFER; \
} while (0)
@@ -2401,7 +2401,7 @@ re_compile_pattern(pattern, size, bufp)
GET_UNSIGNED_NUMBER(c1);
if (!ISDIGIT(c)) PATUNFETCH;
- if (9 < c1 && c1 >= regnum) {
+ if (9 < c1 && c1 >= (unsigned int)regnum) {
/* need to get octal */
c = scan_oct(p0, 3, &numlen) & 0xff;
p = p0 + numlen;
@@ -3881,7 +3881,7 @@ re_match(bufp, string_arg, size, pos, regs)
register unsigned char *d2, *dend2;
/* Check if there's corresponding group */
- if (regno >= num_regs) goto fail;
+ if (regno >= (int)num_regs) goto fail;
/* Check if corresponding group is still open */
if (IS_ACTIVE(reg_info[regno])) goto fail;