diff options
author | unknown <marko@hundin.mysql.fi> | 2005-09-30 15:06:41 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-09-30 15:06:41 +0300 |
commit | afed50ae53a3464a6e7814d64126d53c19892089 (patch) | |
tree | ec57c0c0f0725305c029c36baeec1418e3b858d2 | |
parent | a14a34be6c48624af7d03faf8631a5c794cce9be (diff) | |
download | mariadb-git-afed50ae53a3464a6e7814d64126d53c19892089.tar.gz |
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.
-rw-r--r-- | sql/ha_innodb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index ddda83d6ad9..5b0e5377962 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2635,7 +2635,7 @@ innobase_convert_and_store_changed_col( && cset <= 144/*ucs2_persian_ci*/)) { /* space=0x0020 */ /* Trim "half-chars", just in case. */ - len &= ~1; + len = len - (len % 2); /* len &= ~1; */ while (len && data[len - 2] == 0x00 && data[len - 1] == 0x20) { |