8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:03:03 +01:00

Cast the parameters to match the API declaration. This removes warnings in the generated code.

This commit is contained in:
Dmitry Yemanov 2019-12-11 13:19:07 +03:00
parent 156c6d1feb
commit ce92e192ae

View File

@ -2598,10 +2598,10 @@ static void gen_procedure( const act* action, int column)
const TEXT* pattern;
if (in_port && in_port->por_length)
pattern =
"isc_transact_request (%V1, %RF%DH%RE, %RF%RT%RE, sizeof(%RI), %RI, (short) %PL, (char*) %RF%PI%RE, (short) %QL, (char*) %RF%QI%RE);";
"isc_transact_request (%V1, %RF%DH%RE, %RF%RT%RE, (unsigned short) sizeof(%RI), (char*) %RI, (unsigned short) %PL, (char*) %RF%PI%RE, (unsigned short) %QL, (char*) %RF%QI%RE);";
else
pattern =
"isc_transact_request (%V1, %RF%DH%RE, %RF%RT%RE, sizeof(%RI), %RI, 0, 0, (short) %QL, (char*) %RF%QI%RE);";
"isc_transact_request (%V1, %RF%DH%RE, %RF%RT%RE, (unsigned short) sizeof(%RI), (char*) %RI, 0, 0, (unsigned short) %QL, (char*) %RF%QI%RE);";
// Get database attach and transaction started