summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2021-02-03 10:44:44 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2021-02-05 10:55:53 +0100
commit87bf594bc505cef0cc5c3aa436bb134cc8810e86 (patch)
treeec6341fb1207fc1c07f30c39b6b71a410bd95bfb
parent716b0b44f8ec169de5b89e24c46434f64d58de90 (diff)
downloadmariadb-git-87bf594bc505cef0cc5c3aa436bb134cc8810e86.tar.gz
Fix of random crashes of connect engine (probably depend on addresses used)-
-rw-r--r--storage/connect/plugutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/plugutil.cpp b/storage/connect/plugutil.cpp
index 389613351bb..9e1f006d605 100644
--- a/storage/connect/plugutil.cpp
+++ b/storage/connect/plugutil.cpp
@@ -628,7 +628,7 @@ size_t MakeOff(void* memp, void* ptr)
DoThrow(999);
} // endif ptr
#endif // _DEBUG || DEVELOPMENT
- return (size_t)((char*)ptr - (size_t)memp);
+ return (size_t)(((char*)ptr) - ((char*)memp));
} else
return 0;