Permalink
Browse files

Suppress compiler warning.

  • Loading branch information...
1 parent 57c826f commit 87b3be20fbf6fd42fa18e5b186f8d14ccc7d113b Atsuo Ishimoto committed Jan 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 _gappedbufre/_sre.c
View
@@ -1497,7 +1497,7 @@ SRE_SEARCH(SRE_STATE* state, SRE_CODE* pattern)
character in there, so literal search will work) */
/* end can be minus value in gappedbufre */
- if ((SRE_CODE)end >= ((pattern[3]-1) * state->charsize)) {
+ if ((size_t)end >= ((pattern[3]-1) * state->charsize)) {
end -= (pattern[3]-1) * state->charsize;
if (end <= ptr)
end = ptr + state->charsize;

0 comments on commit 87b3be2

Please sign in to comment.