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
commit845e725a51763907fc55ac5e3e613500ff50d9b3 (patch)
treed4942477206ccc539e6cf7250d80ca4245875523 /storage
parent1d9d7e2526453c2d69a50f82f7a4cf5b96d08310 (diff)
downloadmariadb-git-845e725a51763907fc55ac5e3e613500ff50d9b3.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. */