php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #79311
Patch dict_suggest_patch.patch revision 2020-02-28 04:24 UTC by vibhutisawant18 at gmail dot com

Patch dict_suggest_patch.patch for Enchant related Bug #79311

Patch version 2020-02-28 04:24 UTC

Return to Bug #79311 | Download this patch
Patch Revisions:

Developer: vibhutisawant18@gmail.com

diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c
index 9d12c93..6623a86 100644
--- a/ext/enchant/enchant.c
+++ b/ext/enchant/enchant.c
@@ -667,7 +667,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
        PHP_ENCHANT_GET_DICT;

        if (enchant_dict_check(pdict->pdict, word, wordlen) > 0) {
-               int n_sugg;
+               size_t n_sugg;
                size_t n_sugg_st;
                char **suggs;

@@ -720,7 +720,7 @@ PHP_FUNCTION(enchant_dict_suggest)
        size_t wordlen;
        char **suggs;
        enchant_dict *pdict;
-       int n_sugg;
+       size_t n_sugg;
        size_t n_sugg_st;

        if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &dict, &word, &wordlen) == FAILURE) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC