Skip to content

Commit 2f7c118

Browse files
committed
Adjust types
1 parent 6e6ae9d commit 2f7c118

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ibase_query.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static int _php_ibase_bind(ibase_query *ib_query, zval *b_vars) /* {{{ */
788788
/* we end up here if none of the switch cases handled the field */
789789
convert_to_string(b_var);
790790
var->sqldata = Z_STRVAL_P(b_var);
791-
var->sqllen = Z_STRLEN_P(b_var);
791+
var->sqllen = (ISC_SHORT)Z_STRLEN_P(b_var);
792792
var->sqltype = SQL_TEXT;
793793
} /* for */
794794
return rv;
@@ -1272,7 +1272,7 @@ PHP_FUNCTION(ibase_num_rows)
12721272
/* }}} */
12731273

12741274
static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{ */
1275-
int scale, int flag)
1275+
int scale, size_t flag)
12761276
{
12771277
static ISC_INT64 const scales[] = { 1, 10, 100, 1000,
12781278
10000,
@@ -1394,8 +1394,8 @@ static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{
13941394
return FAILURE;
13951395
}
13961396

1397-
size_t l = sprintf(string_data, "%s %s", timeBuf, timeZoneBuffer);
1398-
ZVAL_STRINGL(val, string_data, l);
1397+
size_t tz_len = sprintf(string_data, "%s %s", timeBuf, timeZoneBuffer);
1398+
ZVAL_STRINGL(val, string_data, tz_len);
13991399
}
14001400
break;
14011401
#endif
@@ -1433,7 +1433,7 @@ static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{
14331433
/* }}} */
14341434

14351435
static int _php_ibase_arr_zval(zval *ar_zval, char *data, zend_ulong data_size, /* {{{ */
1436-
ibase_array *ib_array, int dim, int flag)
1436+
ibase_array *ib_array, int dim, size_t flag)
14371437
{
14381438
/**
14391439
* Create multidimension array - recursion function

0 commit comments

Comments
 (0)