summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-09-30 15:06:41 +0300
committerunknown <marko@hundin.mysql.fi>2005-09-30 15:06:41 +0300
commitafed50ae53a3464a6e7814d64126d53c19892089 (patch)
treeec57c0c0f0725305c029c36baeec1418e3b858d2
parenta14a34be6c48624af7d03faf8631a5c794cce9be (diff)
downloadmariadb-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.cc2
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) {