@@ -529,24 +529,24 @@ parse_datetime: {
529529
530530 switch (sqltype ) {
531531 case SQL_TYPE_TIME :
532- buf -> val .tmval = fbu_encode_time (IBG (master_instance ), obj -> time -> h , obj -> time -> i , obj -> time -> s , obj -> time -> us );
532+ buf -> val .tmval = fbu_encode_time (IBG (master_instance ), ( unsigned ) obj -> time -> h , ( unsigned ) obj -> time -> i , ( unsigned ) obj -> time -> s , ( unsigned ) obj -> time -> us );
533533 break ;
534534 case SQL_TYPE_DATE :
535- buf -> val .dtval = fbu_encode_date (IBG (master_instance ), obj -> time -> y , obj -> time -> m , obj -> time -> d );
535+ buf -> val .dtval = fbu_encode_date (IBG (master_instance ), ( unsigned ) obj -> time -> y , ( unsigned ) obj -> time -> m , ( unsigned ) obj -> time -> d );
536536 break ;
537537 case SQL_TIMESTAMP :
538538 ISC_TIMESTAMP * ts = & buf -> val .tsval ;
539- ts -> timestamp_date = fbu_encode_date (IBG (master_instance ), obj -> time -> y , obj -> time -> m , obj -> time -> d );
540- ts -> timestamp_time = fbu_encode_time (IBG (master_instance ), obj -> time -> h , obj -> time -> i , obj -> time -> s , obj -> time -> us );
539+ ts -> timestamp_date = fbu_encode_date (IBG (master_instance ), ( unsigned ) obj -> time -> y , ( unsigned ) obj -> time -> m , ( unsigned ) obj -> time -> d );
540+ ts -> timestamp_time = fbu_encode_time (IBG (master_instance ), ( unsigned ) obj -> time -> h , ( unsigned ) obj -> time -> i , ( unsigned ) obj -> time -> s , ( unsigned ) obj -> time -> us );
541541 break ;
542542#if FB_API_VER >= 40
543543 case SQL_TIME_TZ :
544- fbu_encode_time_tz (IBG (master_instance ), & buf -> val .tmval_tz , obj -> time -> h , obj -> time -> i , obj -> time -> s , obj -> time -> us , obj -> time -> tz_info -> name );
544+ fbu_encode_time_tz (IBG (master_instance ), & buf -> val .tmval_tz , ( unsigned ) obj -> time -> h , ( unsigned ) obj -> time -> i , ( unsigned ) obj -> time -> s , ( unsigned ) obj -> time -> us , obj -> time -> tz_info -> name );
545545 break ;
546546 case SQL_TIMESTAMP_TZ :
547547 fbu_encode_timestamp_tz (IBG (master_instance ), & buf -> val .tsval_tz ,
548- obj -> time -> y , obj -> time -> m , obj -> time -> d ,
549- obj -> time -> h , obj -> time -> i , obj -> time -> s , obj -> time -> us ,
548+ ( unsigned ) obj -> time -> y , ( unsigned ) obj -> time -> m , ( unsigned ) obj -> time -> d ,
549+ ( unsigned ) obj -> time -> h , ( unsigned ) obj -> time -> i , ( unsigned ) obj -> time -> s , ( unsigned ) obj -> time -> us ,
550550 obj -> time -> tz_info -> name
551551 );
552552 break ;
@@ -1553,7 +1553,7 @@ PHP_FUNCTION(ibase_num_fields)
15531553}
15541554/* }}} */
15551555
1556- static void _php_ibase_field_info (zval * return_value , ibase_query * ib_query , int is_outvar , int num ) /* {{{ */
1556+ static void _php_ibase_field_info (zval * return_value , ibase_query * ib_query , int is_outvar , zend_long num ) /* {{{ */
15571557{
15581558 unsigned short len ;
15591559 char buf [16 ], * s = buf ;
@@ -1595,7 +1595,7 @@ static void _php_ibase_field_info(zval *return_value, ibase_query *ib_query, int
15951595 RETURN_FALSE ;
15961596 }
15971597
1598- if (fbu_insert_field_info (IBG (master_instance ), IB_STATUS , is_outvar , num , return_value , statement )){
1598+ if (fbu_insert_field_info (IBG (master_instance ), IB_STATUS , is_outvar , ( unsigned int ) num , return_value , statement )){
15991599 fbu_release_statement (statement );
16001600 _php_ibase_error ();
16011601 RETURN_FALSE ;
@@ -1732,7 +1732,7 @@ PHP_FUNCTION(ibase_field_info)
17321732 return ;
17331733 }
17341734
1735- _php_ibase_field_info (return_value , ib_query , 1 , ( ISC_SHORT ) field_arg );
1735+ _php_ibase_field_info (return_value , ib_query , 1 , field_arg );
17361736}
17371737/* }}} */
17381738
@@ -1808,7 +1808,7 @@ static int _php_ibase_set_query_info(ibase_query *ib_query)
18081808 // Assume buf will be tagged with `isc_info_truncated` and later in parsing
18091809 // we will catch that. Until `isc_info_truncated` is reached assume pos +=
18101810 // 2, etc are safe.
1811- if (isc_dsql_sql_info (IB_STATUS , & ib_query -> stmt , sizeof (info_req ), (ISC_SCHAR * )info_req , buf_size , (ISC_SCHAR * )buf )) {
1811+ if (isc_dsql_sql_info (IB_STATUS , & ib_query -> stmt , sizeof (info_req ), (ISC_SCHAR * )info_req , ( short ) buf_size , (ISC_SCHAR * )buf )) {
18121812 _php_ibase_error ();
18131813 goto _php_ibase_parse_info_fail ;
18141814 }
0 commit comments