We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d35071 commit 2378950Copy full SHA for 2378950
1 file changed
src/core/modules/memory/memory_callback.cpp
@@ -134,8 +134,11 @@ int CCallback::GetPopSize()
134
135
int CCallback::GetArgumentOffset(int iIndex)
136
{
137
- int offset = 4;
138
- for(int i=0; i <= iIndex; i++)
+ int offset = 8;
+ if (iIndex == 0)
139
+ return offset;
140
+
141
+ for(int i=0; i <= iIndex - 1; i++)
142
143
offset += GetTypeSize(extract<Argument_t>(m_Args[i]));
144
}
0 commit comments