P_S test failures on 32-bit platforms:

always use intptr type when casting a pointer to an integer to avoid sign expansion.
  or, at least, cast identically in socket_summary_by_instance and socket_instances
This commit is contained in:
Sergei Golubchik 2012-10-29 16:30:06 +01:00
parent 3ff12684ba
commit cd5a6304b9

View file

@ -286,7 +286,7 @@ int table_socket_summary_by_instance::read_row_values(TABLE *table,
m_row.m_event_name.set_field(f);
break;
case 1: /* OBJECT_INSTANCE */
set_field_ulonglong(f, (ulonglong)m_row.m_identity);
set_field_ulonglong(f, (intptr)m_row.m_identity);
break;
case 2:/* COUNT_STAR */