mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Portability fix
This commit is contained in:
parent
a6ebf38d72
commit
1ef96d2b76
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ public:
|
|||
virtual void reset_fields() {}
|
||||
virtual void set_default()
|
||||
{
|
||||
my_ptrdiff_t offset = table->default_values - table->record[0];
|
||||
my_ptrdiff_t offset = (my_ptrdiff_t) (table->default_values -
|
||||
table->record[0]);
|
||||
memcpy(ptr, ptr + offset, pack_length());
|
||||
if (null_ptr)
|
||||
*null_ptr= ((*null_ptr & (uchar) ~null_bit) |
|
||||
|
|
Loading…
Reference in a new issue