summaryrefslogtreecommitdiff
path: root/ext/pspell/pspell.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pspell/pspell.c')
-rw-r--r--ext/pspell/pspell.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c
index c7994ea73f..bf01f28df6 100644
--- a/ext/pspell/pspell.c
+++ b/ext/pspell/pspell.c
@@ -264,7 +264,7 @@ static PHP_MINIT_FUNCTION(pspell)
static PHP_FUNCTION(pspell_new)
{
char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL;
- int language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
+ size_t language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
zend_long mode = Z_L(0), speed = Z_L(0);
int argc = ZEND_NUM_ARGS();
zval *ind;
@@ -361,7 +361,7 @@ static PHP_FUNCTION(pspell_new)
static PHP_FUNCTION(pspell_new_personal)
{
char *personal, *language, *spelling = NULL, *jargon = NULL, *encoding = NULL;
- int personal_len, language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
+ size_t personal_len, language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
zend_long mode = Z_L(0), speed = Z_L(0);
int argc = ZEND_NUM_ARGS();
zval *ind;
@@ -495,7 +495,7 @@ static PHP_FUNCTION(pspell_new_config)
Returns true if word is valid */
static PHP_FUNCTION(pspell_check)
{
- int word_len;
+ size_t word_len;
zend_long scin;
char *word;
PspellManager *manager;
@@ -520,7 +520,7 @@ static PHP_FUNCTION(pspell_suggest)
{
zend_long scin;
char *word;
- int word_len;
+ size_t word_len;
PspellManager *manager;
const PspellWordList *wl;
const char *sug;
@@ -551,7 +551,7 @@ static PHP_FUNCTION(pspell_suggest)
Notify the dictionary of a user-selected replacement */
static PHP_FUNCTION(pspell_store_replacement)
{
- int miss_len, corr_len;
+ size_t miss_len, corr_len;
zend_long scin;
char *miss, *corr;
PspellManager *manager;
@@ -576,7 +576,7 @@ static PHP_FUNCTION(pspell_store_replacement)
Adds a word to a personal list */
static PHP_FUNCTION(pspell_add_to_personal)
{
- int word_len;
+ size_t word_len;
zend_long scin;
char *word;
PspellManager *manager;
@@ -606,7 +606,7 @@ static PHP_FUNCTION(pspell_add_to_personal)
Adds a word to the current session */
static PHP_FUNCTION(pspell_add_to_session)
{
- int word_len;
+ size_t word_len;
zend_long scin;
char *word;
PspellManager *manager;
@@ -685,7 +685,7 @@ static PHP_FUNCTION(pspell_save_wordlist)
static PHP_FUNCTION(pspell_config_create)
{
char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL;
- int language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
+ size_t language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0;
zval *ind;
PspellConfig *config;
@@ -819,7 +819,7 @@ static void pspell_config_path(INTERNAL_FUNCTION_PARAMETERS, char *option)
{
zend_long conf;
char *value;
- int value_len;
+ size_t value_len;
PspellConfig *config;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lp", &conf, &value, &value_len) == FAILURE) {
@@ -867,7 +867,7 @@ static PHP_FUNCTION(pspell_config_repl)
{
zend_long conf;
char *repl;
- int repl_len;
+ size_t repl_len;
PspellConfig *config;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lp", &conf, &repl, &repl_len) == FAILURE) {