Commit afed50ae authored by unknown's avatar unknown

InnoDB: After review fix


sql/ha_innodb.cc:
  Avoid bitwise arithmetics, as it might be difficult to read.  The
  added readability costs one register and two instructions on x86.
parent a14a34be
...@@ -2635,7 +2635,7 @@ innobase_convert_and_store_changed_col( ...@@ -2635,7 +2635,7 @@ innobase_convert_and_store_changed_col(
&& cset <= 144/*ucs2_persian_ci*/)) { && cset <= 144/*ucs2_persian_ci*/)) {
/* space=0x0020 */ /* space=0x0020 */
/* Trim "half-chars", just in case. */ /* Trim "half-chars", just in case. */
len &= ~1; len = len - (len % 2); /* len &= ~1; */
while (len && data[len - 2] == 0x00 while (len && data[len - 2] == 0x00
&& data[len - 1] == 0x20) { && data[len - 1] == 0x20) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment