summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorCalvin Sun <calvin.sun@oracle.com>2010-12-27 22:55:49 -0600
committerCalvin Sun <calvin.sun@oracle.com>2010-12-27 22:55:49 -0600
commitac326735a7c7cd3712b69bb05c79966c8a9eb527 (patch)
treed4942477206ccc539e6cf7250d80ca4245875523 /storage
parent90e38f36368f15e224821708ae95f6b38772ad27 (diff)
downloadmariadb-git-ac326735a7c7cd3712b69bb05c79966c8a9eb527.tar.gz
Fix a build error on Windows, introduced by revision-id:
marko.makela@oracle.com-20101221112722-1yxxzzgqtem8bcm7 The fix was suggested by Jimmy.
Diffstat (limited to 'storage')
-rw-r--r--storage/innodb_plugin/row/row0upd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innodb_plugin/row/row0upd.c b/storage/innodb_plugin/row/row0upd.c
index 248f270bd9f..4aa1474a25b 100644
--- a/storage/innodb_plugin/row/row0upd.c
+++ b/storage/innodb_plugin/row/row0upd.c
@@ -1683,8 +1683,8 @@ row_upd_clust_rec_by_insert_inherit_func(
len = dfield_get_len(dfield);
ut_a(len != UNIV_SQL_NULL);
ut_a(len >= BTR_EXTERN_FIELD_REF_SIZE);
- data = dfield_get_data(dfield) + len
- - BTR_EXTERN_FIELD_REF_SIZE;
+ data = dfield_get_data(dfield);
+ data += len - BTR_EXTERN_FIELD_REF_SIZE;
/* The pointer must not be zero. */
ut_a(memcmp(data, field_ref_zero, BTR_EXTERN_FIELD_REF_SIZE));
/* The BLOB must be owned. */