diff options
| author | Anatol Belski <ab@php.net> | 2014-08-20 22:54:00 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-08-20 22:54:00 +0200 |
| commit | 888ef26cc5e03b19729c1e5fa4993fd6a9febb3f (patch) | |
| tree | f2306a5528f0859e05c5344ffad5fafea89f8ced /ext/intl/grapheme/grapheme_util.h | |
| parent | 6d54e899169d9caf47e0b0443ae24ecd23c9a26c (diff) | |
| download | php-git-888ef26cc5e03b19729c1e5fa4993fd6a9febb3f.tar.gz | |
yet trivial fixes
Diffstat (limited to 'ext/intl/grapheme/grapheme_util.h')
| -rw-r--r-- | ext/intl/grapheme/grapheme_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/grapheme/grapheme_util.h b/ext/intl/grapheme/grapheme_util.h index 14f3f22c45..576e524b16 100644 --- a/ext/intl/grapheme/grapheme_util.h +++ b/ext/intl/grapheme/grapheme_util.h @@ -44,6 +44,6 @@ int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, un UBreakIterator* grapheme_get_break_iterator(void *stack_buffer, UErrorCode *status TSRMLS_DC ); /* OUTSIDE_STRING: check if (possibly negative) long offset is outside the string with int32_t length */ -#define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (long) max_len : offset >= (long) max_len) ) +#define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (php_int_t) max_len : offset >= (php_int_t) max_len) ) #endif // GRAPHEME_GRAPHEME_UTIL_H |
