From 87bf594bc505cef0cc5c3aa436bb134cc8810e86 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 3 Feb 2021 10:44:44 +0100 Subject: Fix of random crashes of connect engine (probably depend on addresses used)- --- storage/connect/plugutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1