Navigation Menu

Skip to content

Commit

Permalink
Use uint8 instead of uint8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 20, 2012
1 parent 4ca3bca commit 170b58f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ha_mroonga.cpp
Expand Up @@ -9141,26 +9141,26 @@ int ha_mroonga::storage_encode_multiple_column_key(KEY *key_info,
break;
case TYPE_LONG_LONG_NUMBER:
if (decode)
*((uint8_t *)(&long_long_value)) ^= 0x80;
*((uint8 *)(&long_long_value)) ^= 0x80;
mrn_byte_order_host_to_network(current_buffer, &long_long_value,
data_size);
if (!decode)
*((uint8_t *)(current_buffer)) ^= 0x80;
*((uint8 *)(current_buffer)) ^= 0x80;
break;
case TYPE_NUMBER:
if (decode)
{
Field_num *number_field = (Field_num *)field;
if (!number_field->unsigned_flag) {
*((uint8_t *)(current_key)) ^= 0x80;
*((uint8 *)(current_key)) ^= 0x80;
}
}
mrn_byte_order_host_to_network(current_buffer, current_key, data_size);
if (!decode)
{
Field_num *number_field = (Field_num *)field;
if (!number_field->unsigned_flag) {
*((uint8_t *)(current_buffer)) ^= 0x80;
*((uint8 *)(current_buffer)) ^= 0x80;
}
}
break;
Expand Down

0 comments on commit 170b58f

Please sign in to comment.