Commit 87bf594b authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Fix of random crashes of connect engine (probably depend on addresses used)-

parent 716b0b44
...@@ -628,7 +628,7 @@ size_t MakeOff(void* memp, void* ptr) ...@@ -628,7 +628,7 @@ size_t MakeOff(void* memp, void* ptr)
DoThrow(999); DoThrow(999);
} // endif ptr } // endif ptr
#endif // _DEBUG || DEVELOPMENT #endif // _DEBUG || DEVELOPMENT
return (size_t)((char*)ptr - (size_t)memp); return (size_t)(((char*)ptr) - ((char*)memp));
} else } else
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment