mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
Fix C99 aliasing violation due to mismatched types that were papered over
with a cast. (Bug #48284)
This commit is contained in:
parent
d4db598110
commit
f20d15d07f
1 changed files with 2 additions and 2 deletions
|
|
@ -2285,7 +2285,7 @@ mysql_stmt_param_metadata(MYSQL_STMT *stmt)
|
|||
|
||||
/* Store type of parameter in network buffer. */
|
||||
|
||||
static void store_param_type(char **pos, MYSQL_BIND *param)
|
||||
static void store_param_type(unsigned char **pos, MYSQL_BIND *param)
|
||||
{
|
||||
uint typecode= param->buffer_type | (param->is_unsigned ? 32768 : 0);
|
||||
int2store(*pos, typecode);
|
||||
|
|
@ -2565,7 +2565,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
|
|||
that is sent to the server.
|
||||
*/
|
||||
for (param= stmt->params; param < param_end ; param++)
|
||||
store_param_type((char**) &net->write_pos, param);
|
||||
store_param_type(&net->write_pos, param);
|
||||
}
|
||||
|
||||
for (param= stmt->params; param < param_end; param++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue